Skip to content
Snippets Groups Projects
Commit c944c84a authored by Daalen, Tim van's avatar Daalen, Tim van
Browse files

bugfix and failed attempt to add icon

parent 22cb4076
No related branches found
No related tags found
No related merge requests found
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'D:\irods-clientsb\gui\ui_files\__pycache__'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
icons/GUI.ico

54.6 KiB

...@@ -28,7 +28,7 @@ def run_cmd(cmd): ...@@ -28,7 +28,7 @@ def run_cmd(cmd):
# Convert the .ui files to .py files # Convert the .ui files to .py files
def ui_to_py(ui_folder, python): def ui_to_py(ui_folder, python):
# python -m PyQt5.uic.pyuic -x main.ui -o mainUI.py # python -m PyQt5.uic.pyuic -x main.ui -o mainUI.py
for ui_file in glob(ui_folder + '*'): for ui_file in glob(ui_folder + '*.ui'):
filename, ext = path.splitext(ui_file) filename, ext = path.splitext(ui_file)
print(f"Converting {filename} to .py") print(f"Converting {filename} to .py")
run_cmd(f"""{python} -m PyQt5.uic.pyuic -x {ui_file} -o {filename +".py"}""") run_cmd(f"""{python} -m PyQt5.uic.pyuic -x {ui_file} -o {filename +".py"}""")
...@@ -105,7 +105,7 @@ if __name__ == "__main__": ...@@ -105,7 +105,7 @@ if __name__ == "__main__":
run_cmd(f"{venv_activate} {cmd_sep} pip install -r requirements.txt") run_cmd(f"{venv_activate} {cmd_sep} pip install -r requirements.txt")
# Step 3, Activate venv and tun pyinstaller # Step 3, Activate venv and tun pyinstaller
run_cmd(f"{venv_activate} {cmd_sep} pyinstaller --clean --noconfirm {getcwd()}{sep}irods-iBridgesGui.py") run_cmd(f"{venv_activate} {cmd_sep} pyinstaller --clean --noconfirm --icon irods-iBridgesGui.ico irods-iBridgesGui.py")
dist_folder = f"{getcwd()}{sep}dist" dist_folder = f"{getcwd()}{sep}dist"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment