File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,10 @@ def get_config_dir():
35
35
"""
36
36
Return tmuxp configuration directory.
37
37
38
- ``TMUXP_CONFIGDIR`` environmental variable has precedence if set and not
39
- empty. We also honor XDG default directory, evaluating from XDG_CONFIG_HOME
40
- environmental variable if set and not empty or its default. Then the old
41
- default ~/.tmuxp is returned for compatibility.
38
+ ``TMUXP_CONFIGDIR`` environmental variable has precedence if set. We also
39
+ evaluate XDG default directory from XDG_CONFIG_HOME environmental variable
40
+ if set or its default. Then the old default ~/.tmuxp is returned for
41
+ compatibility.
42
42
43
43
Returns
44
44
-------
@@ -47,9 +47,9 @@ def get_config_dir():
47
47
"""
48
48
49
49
paths = []
50
- if 'TMUXP_CONFIGDIR' in os .environ and os . environ [ 'TMUX_CONFIGDIR' ] :
50
+ if 'TMUXP_CONFIGDIR' in os .environ :
51
51
paths .append (os .environ ['TMUXP_CONFIGDIR' ])
52
- if 'XDG_CONFIG_HOME' in os .environ and os . environ [ 'XDG_CONFIG_HOME' ] :
52
+ if 'XDG_CONFIG_HOME' in os .environ :
53
53
paths .append (os .environ ['XDG_CONFIG_HOME' ])
54
54
else :
55
55
paths .append ('~/.config/tmuxp/' )
You can’t perform that action at this time.
0 commit comments