From 72e69a59af45868afb3a29bb8325a1181f2de999 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sat, 21 Apr 2018 14:47:47 +0200 Subject: [PATCH] Fix setting custom config root --- gajim/common/configpaths.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gajim/common/configpaths.py b/gajim/common/configpaths.py index 83b17efb3..488d6fe02 100644 --- a/gajim/common/configpaths.py +++ b/gajim/common/configpaths.py @@ -54,7 +54,7 @@ def set_profile(profile: str): def set_config_root(config_root: str): - _paths.config_root = config_root + _paths.custom_config_root = config_root def init(): @@ -66,7 +66,7 @@ class ConfigPaths: self.paths = {} self.profile = '' self.profile_separation = False - self.config_root = None + self.custom_config_root = None if os.name == 'nt': try: @@ -123,8 +123,8 @@ class ConfigPaths: yield (key, self[key]) def init(self): - if self.config_root is not None: - self.cache_root = self.data_root = self.config_root + if self.custom_config_root: + self.cache_root = self.data_root = self.config_root = self.custom_config_root self.add('CONFIG_ROOT', None, self.config_root) self.add('CACHE_ROOT', None, self.cache_root)