Skip to content

Commit

Permalink
BIM: Fixed resource contents
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed May 6, 2024
1 parent 8f6eb3d commit b1865ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/Mod/BIM/Resources/Arch.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@
<file>icons/Part_document.svg</file>
<file>icons/Sketch.svg</file>
<file>icons/Tree_Part.svg</file>
<file>icons/banner.png</file>
<file>icons/bimtool.png</file>
<file>icons/preferences-arch.svg</file>
<file>icons/techdraw-ArchView.svg</file>
<file>icons/techdraw-PageDefault.svg</file>
Expand Down
4 changes: 3 additions & 1 deletion src/Mod/BIM/Resources/create_qrc.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
subpath = os.path.join(cdir, subdir)
for f in sorted(os.listdir(subpath)):
if f not in ["Arch.ts", "BIM.ts"]:
txt += " <file>" + subdir + "/" + f + "</file>\n"
ext = os.path.splitext(f)[1]
if ext.lower() in [".ts", ".qm", ".svg", ".ui"]:
txt += " <file>" + subdir + "/" + f + "</file>\n"
txt += " </qresource>\n</RCC>\n"
with open(os.path.join(cdir, "Arch.qrc"), "w") as resfile:
resfile.write(txt)
Expand Down

0 comments on commit b1865ae

Please sign in to comment.