updated to os independent path
This commit is contained in:
@@ -67,10 +67,11 @@ logger.addHandler(consoleHandler)
|
||||
|
||||
# get directory of script
|
||||
cwd = os.path.dirname(os.path.realpath(__file__))
|
||||
configPath = os.path.join(cwd, 'config.ini')
|
||||
|
||||
# import the config file
|
||||
logger.debug("Starting to read the ini config.")
|
||||
logger.debug("Using file {0}/config.ini.".format(cwd))
|
||||
logger.debug("Using file {0}.".format(configPath))
|
||||
try:
|
||||
config = configparser.ConfigParser()
|
||||
config.read(cwd + '/config.ini')
|
||||
|
||||
Reference in New Issue
Block a user