Commit c6633317 authored by Lars Bittrich's avatar Lars Bittrich
Browse files

ramancontrol: replaced absolute path with __file__ path

parent 63f87eae
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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"]