BIM: Fixed resource contents
This commit is contained in:
committed by
Yorik van Havre
parent
40f33f0f73
commit
0a6ff497de
@@ -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>
|
||||
|
||||
@@ -5,7 +5,9 @@ for subdir in ["icons", "ui", "translations"]:
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user