You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
574 B
22 lines
574 B
5 years ago
|
#!/usr/bin/env python
|
||
|
import os
|
||
|
|
||
|
def main():
|
||
|
qrcFile = open("InstrumentValueIcons.qrc", 'wt')
|
||
|
|
||
|
qrcFile.write("<RCC>\n")
|
||
|
qrcFile.write("\t<qresource prefix=\"/InstrumentValueIcons\">\n")
|
||
|
|
||
|
files = os.listdir("../resources/InstrumentValueIcons")
|
||
|
for filename in files:
|
||
|
if filename.endswith(".svg"):
|
||
|
qrcFile.write("\t\t<file alias=\"%s\">../resources/InstrumentValueIcons/%s</file>\n" % (filename, filename))
|
||
|
|
||
|
qrcFile.write("\t</qresource>\n")
|
||
|
qrcFile.write("</RCC>\n")
|
||
|
|
||
|
qrcFile.close()
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
main()
|