diff options
author | Blaine | 2020-06-10 20:42:52 +0530 |
---|---|---|
committer | Blaine | 2020-06-10 20:42:52 +0530 |
commit | cdd7ca2a45f5e0cfd14e20a3d1fff8a58d8be32d (patch) | |
tree | 0b98748057246911595792cde5a71f6ca929ae89 /src/main/python/utils/app.py | |
parent | a8f63cfd34be8c42917f560db8d0f37598fb47c6 (diff) | |
download | Chemical-PFD-cdd7ca2a45f5e0cfd14e20a3d1fff8a58d8be32d.tar.gz Chemical-PFD-cdd7ca2a45f5e0cfd14e20a3d1fff8a58d8be32d.tar.bz2 Chemical-PFD-cdd7ca2a45f5e0cfd14e20a3d1fff8a58d8be32d.zip |
implement new svg files
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: |