Skip to content

Commit

Permalink
pushed the fix for errors with the relative path of config file which…
Browse files Browse the repository at this point in the history
… was already implemented on dev/two_window branch to the master branch, resolves #91
  • Loading branch information
Julian-Hochhaus committed Sep 22, 2023
1 parent fe6e398 commit 0e11a6d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Python/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@
logger.addHandler(handler)

config = configparser.ConfigParser()
config.read('config/config.ini')
config_file_path = os.path.join(script_directory, '../config/config.ini')
if len(config_file_path)>=256:
print('Error: config file path too long (more than 256 characters). Please move the install directory of the project to a shorter path. Otherwise, configparser cannot read the config file and the program does not work.')
config.read(config_file_path)

__version__ = "2.1.5"
# style.use('ggplot')
Expand Down

0 comments on commit 0e11a6d

Please sign in to comment.