Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
authorPhilipp Hörist <forenjunkie@chello.at>2018-04-21 13:44:10 +0300
committerPhilipp Hörist <forenjunkie@chello.at>2018-04-21 13:48:57 +0300
commit4a26ecb12cec0c689a4f95db91d5d2002c15b597 (patch)
treef54016781ac5d4f2b83f97bc1f21b53fb3140448 /test/lib
parent8e9c040acf97782045119c76fc0273f31d323dfc (diff)
Refactor configpaths
- init configpaths earlier so logging can access it to store debug logs - First step for more consistency across Gajim when looking up paths Recommended usage for the future: app.configpaths.get() configpaths.get()
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/lib/__init__.py b/test/lib/__init__.py
index 78a2602c2..7ddd20216 100644
--- a/test/lib/__init__.py
+++ b/test/lib/__init__.py
@@ -37,8 +37,9 @@ def setup_env():
os.mkdir(configdir)
os.mkdir(pluginsconfigdir)
- import gajim.common.configpaths
- gajim.common.configpaths.gajimpaths.init(configdir)
+ from gajim.common import configpaths
+ configpaths.set_config_root(configdir)
+ configpaths.init()
# for some reason gajim.common.app needs to be imported before xmpppy?
from gajim.common import app