Improve config loading (#51)

This commit is contained in:
zewelor
2019-02-14 07:29:43 +01:00
committed by GitHub
parent 0fe8234173
commit a477c0b3cb
+3 -1
View File
@@ -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)