Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added nuitka exe compatability #292

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ibridgesgui/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Browser(PyQt6.QtWidgets.QWidget, Ui_tabBrowser):
def __init__(self, session, app_name: str):
"""Initialize an iRODS browser view."""
super().__init__()
if getattr(sys, "frozen", False):
if getattr(sys, "frozen", False) or ("__compiled__" in globals()):
super().setupUi(self)
else:
PyQt6.uic.loadUi(UI_FILE_DIR / "tabBrowser.ui", self)
Expand Down
2 changes: 1 addition & 1 deletion ibridgesgui/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Info(PyQt6.QtWidgets.QWidget, Ui_tabInfo):
def __init__(self, session):
"""Initialise the tab."""
super().__init__()
if getattr(sys, "frozen", False):
if getattr(sys, "frozen", False) or ("__compiled__" in globals()):
super().setupUi(self)
else:
PyQt6.uic.loadUi(UI_FILE_DIR / "tabInfo.ui", self)
Expand Down
2 changes: 1 addition & 1 deletion ibridgesgui/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Login(QDialog, Ui_irodsLogin):
def __init__(self, session_dict, app_name):
"""Initialise tab."""
super().__init__()
if getattr(sys, "frozen", False):
if getattr(sys, "frozen", False) or ("__compiled__" in globals()):
super().setupUi(self)
else:
loadUi(UI_FILE_DIR / "irodsLogin.ui", self)
Expand Down
2 changes: 1 addition & 1 deletion ibridgesgui/logviewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class LogViewer(PyQt6.QtWidgets.QWidget, Ui_tabLogging):
def __init__(self, logger):
"""Initialise the tab."""
super().__init__()
if getattr(sys, "frozen", False):
if getattr(sys, "frozen", False) or ("__compiled__" in globals()):
super().setupUi(self)
else:
PyQt6.uic.loadUi(UI_FILE_DIR / "tabLogging.ui", self)
Expand Down
12 changes: 6 additions & 6 deletions ibridgesgui/popup_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class CreateCollection(QDialog, Ui_createCollection):
def __init__(self, parent, logger):
"""Initialise window."""
super().__init__()
if getattr(sys, "frozen", False):
if getattr(sys, "frozen", False) or ("__compiled__" in globals()):
super().setupUi(self)
else:
loadUi(UI_FILE_DIR / "createCollection.ui", self)
Expand Down Expand Up @@ -68,7 +68,7 @@ class CreateDirectory(QDialog, Ui_createCollection):
def __init__(self, parent):
"""Initialise window."""
super().__init__()
if getattr(sys, "frozen", False):
if getattr(sys, "frozen", False) or ("__compiled__" in globals()):
super().setupUi(self)
else:
loadUi(UI_FILE_DIR / "createCollection.ui", self)
Expand Down Expand Up @@ -100,7 +100,7 @@ class Rename(QDialog, Ui_renameItem):
def __init__(self, irods_path: IrodsPath, logger):
"""Initialise window."""
super().__init__()
if getattr(sys, "frozen", False):
if getattr(sys, "frozen", False) or ("__compiled__" in globals()):
super().setupUi(self)
else:
loadUi(UI_FILE_DIR / "renameItem.ui", self)
Expand Down Expand Up @@ -137,7 +137,7 @@ class CheckConfig(QDialog, Ui_configCheck):
def __init__(self, logger, env_path):
"""Initialise window."""
super().__init__()
if getattr(sys, "frozen", False):
if getattr(sys, "frozen", False) or ("__compiled__" in globals()):
super().setupUi(self)
else:
loadUi(UI_FILE_DIR / "configCheck.ui", self)
Expand Down Expand Up @@ -280,7 +280,7 @@ class UploadData(QDialog, Ui_uploadData):
def __init__(self, logger, session, irods_path):
"""Initialise window."""
super().__init__()
if getattr(sys, "frozen", False):
if getattr(sys, "frozen", False) or ("__compiled__" in globals()):
super().setupUi(self)
else:
loadUi(UI_FILE_DIR / "uploadData.ui", self)
Expand Down Expand Up @@ -430,7 +430,7 @@ class DownloadData(QDialog, Ui_downloadData):
def __init__(self, logger, session, irods_path):
"""Initialise window."""
super().__init__()
if getattr(sys, "frozen", False):
if getattr(sys, "frozen", False) or ("__compiled__" in globals()):
super().setupUi(self)
else:
loadUi(UI_FILE_DIR / "downloadData.ui", self)
Expand Down
2 changes: 1 addition & 1 deletion ibridgesgui/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self, session, app_name, browser):

"""
super().__init__()
if getattr(sys, "frozen", False):
if getattr(sys, "frozen", False) or ("__compiled__" in globals()):
super().setupUi(self)
else:
PyQt6.uic.loadUi(UI_FILE_DIR / "tabSearch.ui", self)
Expand Down
2 changes: 1 addition & 1 deletion ibridgesgui/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self, session, app_name):

"""
super().__init__()
if getattr(sys, "frozen", False):
if getattr(sys, "frozen", False) or ("__compiled__" in globals()):
super().setupUi(self)
else:
PyQt6.uic.loadUi(UI_FILE_DIR / "tabSync.ui", self)
Expand Down
2 changes: 1 addition & 1 deletion ibridgesgui/welcome.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Welcome(PyQt6.QtWidgets.QWidget, Ui_Welcome):
def __init__(self):
"""Initialize welcome tab."""
super().__init__()
if getattr(sys, "frozen", False):
if getattr(sys, "frozen", False) or ("__compiled__" in globals()):
super().setupUi(self)
else:
PyQt6.uic.loadUi(UI_FILE_DIR / "welcome.ui", self)
Expand Down
Loading