]> rtime.felk.cvut.cz Git - hubacji1/coffee-getter.git/blobdiff - cbconf.py
Merge branch 'release/0.3.0'
[hubacji1/coffee-getter.git] / cbconf.py
index 69d53e35769ffc196609f20ddbb36fd2a86f07ce..7695cd405ac782314bdbbf46dd152cff94c1a604 100644 (file)
--- a/cbconf.py
+++ b/cbconf.py
@@ -1,9 +1,10 @@
 # -*- coding: utf-8 -*-
 """Get configuration."""
 from json import loads
+from os.path import dirname, abspath
 
 class Conf:
-    PATH = ".cfg"
+    PATH = "{}/.cfg".format(dirname(abspath(__file__)))
 
     def __init__(self):
         with open(Conf.PATH) as f: