diff options
Diffstat (limited to 'src/main/python/utils/app.py')
-rw-r--r-- | src/main/python/utils/app.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/python/utils/app.py b/src/main/python/utils/app.py index 9812fda..4cc8228 100644 --- a/src/main/python/utils/app.py +++ b/src/main/python/utils/app.py @@ -5,14 +5,15 @@ Declare fbs application so that it can be imported in other modules. from fbs_runtime.application_context.PyQt5 import ApplicationContext from PyQt5.QtCore import QSettings from json import JSONEncoder, dumps, loads, dump, load +from os.path import join app = ApplicationContext() settings = QSettings(QSettings.IniFormat, QSettings.UserScope ,"FOSSEE", "Chemical-PFD") version = app.build_settings['version'] -def fileImporter(file): +def fileImporter(*file): # Helper function to fetch files from src/main/resources - return app.get_resource(file) + return app.get_resource(join(*file)) class JSON_Encoder: |