From a01870c1d3343fc61a7fe859029e3b2f3af75279 Mon Sep 17 00:00:00 2001 From: ZyX Date: Wed, 7 Jan 2015 05:13:48 +0300 Subject: [PATCH] Also use it in `get_config_paths` --- powerline/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/powerline/__init__.py b/powerline/__init__.py index d2e8bc6b..c7dad904 100644 --- a/powerline/__init__.py +++ b/powerline/__init__.py @@ -143,12 +143,12 @@ def get_config_paths(): :return: list of paths ''' config_home = os.environ.get('XDG_CONFIG_HOME', os.path.join(os.path.expanduser('~'), '.config')) - config_path = os.path.join(config_home, 'powerline') + config_path = join(config_home, 'powerline') config_paths = [config_path] config_dirs = os.environ.get('XDG_CONFIG_DIRS', DEFAULT_SYSTEM_CONFIG_DIR) if config_dirs is not None: - config_paths[:0] = reversed([os.path.join(d, 'powerline') for d in config_dirs.split(':')]) - plugin_path = os.path.join(os.path.realpath(os.path.dirname(__file__)), 'config_files') + config_paths[:0] = reversed([join(d, 'powerline') for d in config_dirs.split(':')]) + plugin_path = join(os.path.realpath(os.path.dirname(__file__)), 'config_files') config_paths.insert(0, plugin_path) return config_paths