Commit c6633317 authored by Lars Bittrich's avatar Lars Bittrich

ramancontrol: replaced absolute path with __file__ path

parent 63f87eae
......@@ -23,11 +23,12 @@ import configparser
__all__ = ["RamanControl", "defaultPath", "simulatedRaman"]
defaultPath = os.path.split(__file__)[0]
config = configparser.ConfigParser()
config.read('D://Projekte//Gepard//gepard//gepard.cfg') #absolute path to config file
config.read(os.path.join(defaultPath, 'gepard.cfg'))
interface = "SIMULATED_RAMAN_CONTROL"
defaultPath = os.path.split(__file__)[0]
try:
defaultPath = config["Defaults"]["file_path"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment