From 2d1bd8636fbea06d4879b392708cbb04376b3ee6 Mon Sep 17 00:00:00 2001 From: CPD Date: Thu, 13 Feb 2025 12:20:00 +0100 Subject: [PATCH] initial commit --- app/ui/widgets/metadata_input.py | 0 app/ui/widgets/plot.py | 0 main.py | 17 +++++++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 app/ui/widgets/metadata_input.py create mode 100644 app/ui/widgets/plot.py create mode 100644 main.py diff --git a/app/ui/widgets/metadata_input.py b/app/ui/widgets/metadata_input.py new file mode 100644 index 0000000..e69de29 diff --git a/app/ui/widgets/plot.py b/app/ui/widgets/plot.py new file mode 100644 index 0000000..e69de29 diff --git a/main.py b/main.py new file mode 100644 index 0000000..e9f275a --- /dev/null +++ b/main.py @@ -0,0 +1,17 @@ +import sys +if __name__ == "__main__": + if __package__ is None: + # make relative imports work as described here: https://peps.python.org/pep-0366/#proposed-change + __package__ = "cpdctrl" + from os import path + filepath = path.realpath(path.abspath(__file__)) + pdir = path.dirname(path.dirname(filepath)) + sys.path.insert(0, pdir) + sys.path.insert(0, path.join(pdir, "cpdctrl")) +print(sys.path) +from app import init + +if __name__ == '__main__': + import sys + + sys.exit(init.run())