Skip to content

Commit

Permalink
Prebuild: use qt batch scripts directly for windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
codito committed Sep 13, 2017
1 parent e4096ed commit 02d5739
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pre_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ def build_qt():

uic = "pyuic5"
rcc = "pyrcc5"
lupdate = "pylupdate5"
if sys.platform.startswith("win"):
pyqt_windows_root = get_pyqt_install_root()
uic = path.join(pyqt_windows_root, uic + ".bat")
rcc = path.join(pyqt_windows_root, rcc)
lupdate = path.join(pyqt_windows_root, lupdate)
# lupdate = "pylupdate5"
# if sys.platform.startswith("win"):
# pyqt_windows_root = get_pyqt_install_root()
# uic = path.join(pyqt_windows_root, uic + ".bat")
# rcc = path.join(pyqt_windows_root, rcc)
# lupdate = path.join(pyqt_windows_root, lupdate)

subprocess.check_call([uic, "data/qt/timer.ui", "--from-imports", "-o", "pomito/plugins/ui/qt_timer.py"])
subprocess.check_call([uic, "data/qt/task.ui", "--from-imports", "-o", "pomito/plugins/ui/qt_task.py"])
Expand Down

0 comments on commit 02d5739

Please sign in to comment.