Add build scripts for ui files

This commit is contained in:
altffour 2019-10-14 18:24:41 +03:00
parent 9e5d9eea96
commit 7af90d078c
2 changed files with 18 additions and 0 deletions

15
buildUI.py Normal file
View File

@ -0,0 +1,15 @@
import os
from os.path import isfile, join
from os import listdir
cwd = os.getcwd() + "/"
ui_files = [f for f in listdir("ui/") if isfile(join("ui/", f))]
ui_py = {x.replace('.ui', '.py') for x in ui_files}
if not os.path.exists("compiledUI"):
os.makedirs("compiledUI")
for ui, uipy in zip(ui_files, ui_py):
os.system("pyuic5 " + cwd + "ui/" + ui + " -o" + " compiledUI/" + uipy)

3
clean.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
rm -rf compiledUI