From 95a2bef8d902c38b02c5464d9d9aeb3603a55c08 Mon Sep 17 00:00:00 2001 From: ZyX Date: Sat, 28 Jun 2014 19:03:50 +0400 Subject: [PATCH] Take directory setting from TMUX_CONFIG_DIRECTORY --- powerline/bindings/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/powerline/bindings/config.py b/powerline/bindings/config.py index 83bab203..ab21d035 100644 --- a/powerline/bindings/config.py +++ b/powerline/bindings/config.py @@ -10,6 +10,8 @@ import re TmuxVersionInfo = namedtuple('TmuxVersionInfo', ('major', 'minor', 'suffix')) +TMUX_CONFIG_DIRECTORY = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tmux') + def get_tmux_executable_name(): '''Returns tmux executable name @@ -65,7 +67,7 @@ CONFIG_PRIORITY = { def list_all_tmux_configs(): '''List all version-specific tmux configuration files''' - directory = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tmux') + directory = TMUX_CONFIG_DIRECTORY for root, dirs, files in os.walk(directory): dirs[:] = () for fname in files: