Skip to content

Commit 3c809ce

Browse files
committed
Rename expandpath to expandvars
1 parent 0d3e93d commit 3c809ce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Import and export
102102

103103
.. automethod:: tmuxp.config.validate_schema
104104

105-
.. automethod:: tmuxp.config.expandpath
105+
.. automethod:: tmuxp.config.expandvars
106106

107107
.. automethod:: tmuxp.config.expand
108108

tmuxp/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def in_cwd():
102102

103103
return configs
104104

105-
def expandpath(_path):
105+
def expandvars(_path):
106106
"""Return expanded path based on user's ``$HOME`` and ``env``.
107107
108108
:py:func:`os.path.expanduser` and :py:func:`os.path.expandvars`
@@ -188,7 +188,7 @@ def expand(sconf, cwd=None, parent=None):
188188
# Any config section, session, window, pane that can contain the
189189
# 'shell_command' value
190190
if 'start_directory' in sconf:
191-
sconf['start_directory'] = expandpath(sconf['start_directory'])
191+
sconf['start_directory'] = expandvars(sconf['start_directory'])
192192
start_path = sconf['start_directory']
193193
if any(start_path.startswith(a) for a in ['.', './']):
194194
# if window has a session, or pane has a window with a

0 commit comments

Comments
 (0)