summaryrefslogtreecommitdiff
blob: 955eaf60ca30de80d5b7e7f362b937b73839d490 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
check_config uses the global constant CONFIG_PATH instead
of the path that gets passed to it.

--- a/hyfetch/main.py
+++ b/hyfetch/main.py
@@ -27,7 +27,7 @@ def check_config(path) -> Config:
     """
     if path.is_file():
         try:
-            return Config.from_dict(json.loads(CONFIG_PATH.read_text('utf-8')))
+            return Config.from_dict(json.loads(path.read_text('utf-8')))
         except KeyError:
             return create_config()