diff options
Diffstat (limited to 'src/main/python/utils/app.py')
-rw-r--r-- | src/main/python/utils/app.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/python/utils/app.py b/src/main/python/utils/app.py new file mode 100644 index 0000000..4540a43 --- /dev/null +++ b/src/main/python/utils/app.py @@ -0,0 +1,10 @@ +""" +Declare fbs application so that it can be imported in other modules. +""" + +from fbs_runtime.application_context.PyQt5 import ApplicationContext +app = ApplicationContext() + +def fileImporter(file): + # Helper function to fetch files from src/main/resources + return app.get_resource(file) |