summaryrefslogtreecommitdiff
path: root/src/main/python/utils/app.py
blob: 4ee11c34da250f9076b84d3c9e955781de45721d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
"""
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

app = ApplicationContext()
settings = QSettings(QSettings.IniFormat, QSettings.UserScope ,"FOSSEE", "Chemical-PFD")

def fileImporter(file):
    # Helper function to fetch files from src/main/resources
    return app.get_resource(file)