Config directory fix

- locates config in the same directory as the main file
master
Peter Šurda 2 years ago
parent af931ae745
commit 360917be5d
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87
  1. 2
      main.py

@ -11,7 +11,7 @@ import configparser
PATH = os.path.dirname(os.path.abspath(__file__))
config = configparser.ConfigParser()
config.read("config.ini")
config.read(os.path.join(PATH, "config.ini"))
user_data_filename = config["app"].get("user_data", "sample_file.txt")
meta_data_filename = config["app"].get("meta_data", "meta_data_extra.txt")

Loading…
Cancel
Save