Skip to content

Commit b2605a3

Browse files
rafitony
authored andcommitted
When loading, get the config canonical file path
Fix issue when config files are symlinks in `~/.tmuxp`
1 parent 6eabe5e commit b2605a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tmuxp/cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,8 @@ def load_workspace(
218218
:param type: string
219219
220220
"""
221+
# get the canonical path, eliminating any symlinks
222+
config_file = os.path.realpath(config_file)
221223

222224
sconfig = kaptan.Kaptan()
223225
sconfig = sconfig.import_config(config_file).get()

0 commit comments

Comments
 (0)