spostatui script in virtualenv

This commit is contained in:
2020-10-22 15:05:49 +02:00
parent 8a9ce0dc9f
commit 24fdaed8d9
10 changed files with 18 additions and 85 deletions

View File

@@ -0,0 +1,15 @@
'''
Created on 10 apr 2020
@author: Emanuele Trabattoni
'''
import os,glob
import subprocess
if __name__ == '__main__':
tsfiles = glob.glob("..\\UserInterface\\resources\\translations\\*.ts")
for ts in tsfiles:
tso = "..\\SPEx\\userInterface\\resources\\translations\\"+os.path.splitext((os.path.split(ts)[1]))[0]+".qm"
subprocess.run(f'lrelease.exe {ts} -qm {tso}')
os.chdir("..\\SPEx\\userInterface")
pass