summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/main.py b/main.py
index ede6277..96dab8a 100644
--- a/main.py
+++ b/main.py
@@ -1,5 +1,5 @@
"""
-main.py — LabDAQ entry point.
+main.py — LabUI entry point.
Run:
python main.py
@@ -11,6 +11,11 @@ Requirements:
import sys, os
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
+# Plugin dependencies installed at runtime land here so the frozen app can import them.
+_PLUGIN_PACKAGES = os.path.join(os.path.expanduser("~"), ".labui", "plugin_packages")
+if os.path.isdir(_PLUGIN_PACKAGES) and _PLUGIN_PACKAGES not in sys.path:
+ sys.path.insert(0, _PLUGIN_PACKAGES)
+
from PyQt6.QtWidgets import QApplication
from ui.main_window import MainWindow
from core.debug_log import install as install_debug_log
@@ -18,7 +23,7 @@ from core.debug_log import install as install_debug_log
def main():
app = QApplication(sys.argv)
- app.setApplicationName("LabDAQ")
+ app.setApplicationName("LabUI")
install_debug_log() # tee stdout/stderr for the Debug window, before anything prints
qss = os.path.join(os.path.dirname(os.path.abspath(__file__)), "ui", "style_dark.qss")