Skip to content

Commit

Permalink
Fix tmuxp load .
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Oct 27, 2013
1 parent 2faf577 commit c17eec5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tmuxp/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,12 @@ def subcommand_load(args):
elif args.config:
if '.' == args.config:
if config.in_cwd():
args.config.append(config.in_cwd()[0])
configfile = config.in_cwd()[0]
print configfile
else:
print('No tmuxp configs found in current directory.')

configfile = args.config
else:
configfile = args.config
file_user = os.path.join(config_dir, configfile)
file_cwd = os.path.join(cwd_dir, configfile)
if os.path.exists(file_cwd) and os.path.isfile(file_cwd):
Expand Down

0 comments on commit c17eec5

Please sign in to comment.