File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
modelica_fmi/src/modelica_fmi Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -223,12 +223,12 @@ def import_fmu_to_modelica(
223223 icon = "modelica://FMI/Resources/Images/FMU_bare.svg"
224224
225225 if model_description .fmiVersion == "2.0" and (unzipdir / "model.png" ).is_file ():
226- icon = f"modelica://FMI /Resources/FMUs/{ hash } /model.png"
226+ icon = f"modelica://{ package } /Resources/FMUs/{ hash } /model.png"
227227 elif model_description .fmiVersion .startswith ("3." ):
228228 if (unzipdir / "terminalsAndIcons" / "icon.svg" ).is_file ():
229- icon = f"modelica://FMI /Resources/FMUs/{ hash } /terminalsAndIcons/icon.svg"
229+ icon = f"modelica://{ package } /Resources/FMUs/{ hash } /terminalsAndIcons/icon.svg"
230230 elif (unzipdir / "terminalsAndIcons" / "icon.png" ).is_file ():
231- icon = f"modelica://FMI /Resources/FMUs/{ hash } /terminalsAndIcons/icon.png"
231+ icon = f"modelica://{ package } /Resources/FMUs/{ hash } /terminalsAndIcons/icon.png"
232232
233233 class_text = template .render (
234234 hash = hash ,
You can’t perform that action at this time.
0 commit comments