summary refs log tree commit diff stats
path: root/ganarchy/data.py
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2020-07-19 20:38:05 -0300
committerSoniEx2 <endermoneymod@gmail.com>2020-07-19 20:38:05 -0300
commitaf3fb6c6eb233af00229a908bab92afbf38bad0b (patch)
tree6aaaa1726c585d25fa84d1a09cb4b1950278097f /ganarchy/data.py
parentf216c88680a880db75ab24d9ce8fa35f327ac697 (diff)
Move a lot of things around (broken)
Diffstat (limited to 'ganarchy/data.py')
-rw-r--r--ganarchy/data.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/ganarchy/data.py b/ganarchy/data.py
index 7de0764..730a5a9 100644
--- a/ganarchy/data.py
+++ b/ganarchy/data.py
@@ -1,5 +1,5 @@
 # This file is part of GAnarchy - decentralized project hub
-# Copyright (C) 2019  Soni L.
+# Copyright (C) 2019, 2020  Soni L.
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU Affero General Public License as published by
@@ -35,6 +35,8 @@ import requests
 from enum import Enum
 from urllib.parse import urlparse
 
+import ganarchy.dirs
+
 # TODO move elsewhere
 class URIPredicate(abdl.predicates.Predicate):
     def __init__(self, ports=range(1,65536), schemes=('https',)):
@@ -391,8 +393,7 @@ class ConfigManager(DataSource):
 
     @classmethod
     def new_default(cls):
-        from ganarchy import config_home, config_dirs
-        srcs = [LocalDataSource(d + "/config.toml") for d in [config_home] + config_dirs]
+        srcs = [LocalDataSource(d + "/config.toml") for d in [ganarchy.dirs.CONFIG_HOME] + ganarchy.dirs.CONFIG_DIRS]
         return cls(srcs + [DefaultsDataSource()])
 
     def exists(self):