13 lines
419 B
Python
13 lines
419 B
Python
import subprocess as SP
|
|
from glob import glob
|
|
import os
|
|
|
|
|
|
ui_path = os.path.dirname(os.path.abspath(__file__))
|
|
for root, folders, files in os.walk(ui_path):
|
|
for file in files:
|
|
file = os.path.join(root, file)
|
|
outfile, ext = os.path.splitext(file)
|
|
if ext == ".ui":
|
|
outfile = outfile + ".py"
|
|
SP.check_call(["pyuic5", "--from-imports", "-o", outfile, file])
|