Philipp Hörist pushed to branch master at gajim / gajim
Commits: 72e69a59 by Philipp Hörist at 2018-04-21T14:47:47+02:00 Fix setting custom config root
- - - - -
1 changed file:
- gajim/common/configpaths.py
Changes:
===================================== gajim/common/configpaths.py ===================================== --- 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)
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/72e69a59af45868afb3a29bb8325a1181f2...
--- View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/72e69a59af45868afb3a29bb8325a1181f2... You're receiving this email because of your account on dev.gajim.org.