diff --git a/stw_potsdam/config.py b/stw_potsdam/config.py index 8dd3fef..062b0aa 100644 --- a/stw_potsdam/config.py +++ b/stw_potsdam/config.py @@ -9,7 +9,7 @@ from canteen import Canteen def _get_config(filename): config = ConfigParser.SafeConfigParser() - path = os.path.join('stw_potsdam', filename) + path = os.path.join(os.path.dirname(__file__), filename) with io.open(path, encoding='utf-8') as f: config.readfp(f) return config diff --git a/tests/test_consistency.py b/tests/test_consistency.py index e22d326..83e2bc8 100644 --- a/tests/test_consistency.py +++ b/tests/test_consistency.py @@ -9,7 +9,7 @@ from stw_potsdam.config import read_canteen_config def _resource_path(filename): - return os.path.join('tests', 'resources', filename) + return os.path.join(os.path.dirname(__file__), 'resources', filename) def _canteen():