spostato il progetto in spex per usare poetry

This commit is contained in:
2020-09-10 12:35:31 +02:00
parent 69be5ca9de
commit b603581e4f
89 changed files with 111 additions and 28554 deletions

33
scripts/compileUI.py Normal file
View File

@@ -0,0 +1,33 @@
'''
Created on 24 nov 2019
@author: Emanuele Trabattoni
'''
import os, glob, subprocess
def updateInterfaces():
uifiles = glob.glob("*.ui")
for f in uifiles:
command = r"pyuic5.exe "+f
print(command)
rv = subprocess.run(command, capture_output=True)
fp = open(r".\\CompiledUI\\"+f.replace("ui","py"), 'w')
fp.write(str(rv.stdout, encoding='utf-8').replace('\r', ''))
fp.close()
def updateResources():
command = r'pyrcc5.exe '+'.\\resources\\resources.qrc'
print (command)
rv = subprocess.run(command, capture_output=True)
fp = open(r".\\compiledUI\\resources_rc.py", 'w')
fp.write(str(rv.stdout, encoding='utf-8').replace('\r', ''))
fp.close()
if __name__ == '__main__':
os.chdir("..\\UserInterface")
print(os.getcwd())
updateInterfaces()
updateResources()
pass