Compare commits
2 Commits
96684996bc
...
05fdd158c9
| Author | SHA1 | Date | |
|---|---|---|---|
| 05fdd158c9 | |||
| 4df965745b |
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
Before Width: | Height: | Size: 20 KiB |
@@ -6,19 +6,20 @@ Created on 24 nov 2019
|
|||||||
import os, glob, subprocess
|
import os, glob, subprocess
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
os.chdir("..\\UserInterface")
|
||||||
print(os.getcwd())
|
print(os.getcwd())
|
||||||
uifiles = glob.glob("*.ui")
|
uifiles = glob.glob("*.ui")
|
||||||
for f in uifiles:
|
for f in uifiles:
|
||||||
command = r"pyuic5.exe "+f
|
command = r"pyuic5.exe "+f
|
||||||
print(command)
|
print(command)
|
||||||
rv = subprocess.run(command, capture_output=True)
|
rv = subprocess.run(command, capture_output=True)
|
||||||
fp = open(r".\compiledUI\\"+f.replace("ui","py"), 'w')
|
fp = open(r".\\CompiledUI\\"+f.replace("ui","py"), 'w')
|
||||||
fp.write(str(rv.stdout, encoding='utf-8').replace('\r', ''))
|
fp.write(str(rv.stdout, encoding='utf-8').replace('\r', ''))
|
||||||
fp.close()
|
fp.close()
|
||||||
command = r'pyrcc5.exe '+'resources/resources.qrc'
|
command = r'pyrcc5.exe '+'.resources\\resources.qrc'
|
||||||
print (command)
|
print (command)
|
||||||
rv = subprocess.run(command, capture_output=True)
|
rv = subprocess.run(command, capture_output=True)
|
||||||
fp = open(r".\compiledUI\\resources_rc.py", 'w')
|
fp = open(r".\\compiledUI\\resources_rc.py", 'w')
|
||||||
fp.write(str(rv.stdout, encoding='utf-8').replace('\r', ''))
|
fp.write(str(rv.stdout, encoding='utf-8').replace('\r', ''))
|
||||||
fp.close()
|
fp.close()
|
||||||
pass
|
pass
|
||||||
Reference in New Issue
Block a user