From a477c0b3cbc68f73b2e18f6890f1f38c0912710c Mon Sep 17 00:00:00 2001 From: zewelor Date: Thu, 14 Feb 2019 07:29:43 +0100 Subject: [PATCH] Improve config loading (#51) --- config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config.py b/config.py index 38b8da9..596974e 100644 --- a/config.py +++ b/config.py @@ -1,4 +1,6 @@ import yaml +import os +import sys -with open("config.yaml", "r") as f: +with open(os.path.join(sys.path[0], "config.yaml"), "r") as f: settings = yaml.safe_load(f)