mirror of
https://github.com/powerline/powerline.git
synced 2025-07-27 15:54:30 +02:00
Take directory setting from TMUX_CONFIG_DIRECTORY
This commit is contained in:
parent
1f6ed8ef13
commit
95a2bef8d9
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user