Skip to content

Commit c17eec5

Browse files
committed
Fix tmuxp load .
1 parent 2faf577 commit c17eec5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tmuxp/cli.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,12 @@ def subcommand_load(args):
212212
elif args.config:
213213
if '.' == args.config:
214214
if config.in_cwd():
215-
args.config.append(config.in_cwd()[0])
215+
configfile = config.in_cwd()[0]
216+
print configfile
216217
else:
217218
print('No tmuxp configs found in current directory.')
218-
219-
configfile = args.config
219+
else:
220+
configfile = args.config
220221
file_user = os.path.join(config_dir, configfile)
221222
file_cwd = os.path.join(cwd_dir, configfile)
222223
if os.path.exists(file_cwd) and os.path.isfile(file_cwd):

0 commit comments

Comments
 (0)