Config directory fix

- locates config in the same directory as the main file
This commit is contained in:
Peter Šurda 2021-02-23 16:12:28 +01:00
parent af931ae745
commit 360917be5d
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -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")