Skip to content

Commit 40ece06

Browse files
committed
expanduser ~ in teamocil when saving
1 parent 528dd77 commit 40ece06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tmuxp/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ def command_import_tmuxinator(args):
511511
print(output)
512512

513513
if args.config:
514-
configfile = os.path.abspath(os.path.relpath(args.config))
514+
configfile = os.path.abspath(os.path.relpath(os.path.expanduser(args.config)))
515515
configparser = kaptan.Kaptan(handler='yaml')
516516

517517
if os.path.exists(configfile):
@@ -552,7 +552,7 @@ def command_import_tmuxinator(args):
552552

553553
dest = dest_prompt
554554

555-
dest = os.path.abspath(os.path.relpath(dest))
555+
dest = os.path.abspath(os.path.relpath(os.path.expanduser(dest)))
556556
if prompt_yes_no('Write to %s?' % dest):
557557
buf = open(dest, 'w')
558558
buf.write(newconfig)

0 commit comments

Comments
 (0)