Skip to content

Commit

Permalink
Expand ~ in --dest-path option.
Browse files Browse the repository at this point in the history
Closes #85
  • Loading branch information
scottr committed Sep 19, 2011
1 parent 70b18b6 commit bd027af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renamealbum
Expand Up @@ -289,7 +289,7 @@ def scheme_help():
print " " + i + " (integer)"

def path_arg_cb(option, opt_str, value, parser):
path = os.path.abspath(value)
path = os.path.abspath(os.path.expanduser(value))
if not os.path.isdir(path):
raise optparse.OptionValueError("to %s must be a directory that exists" % value)
setattr(parser.values, option.dest, path)
Expand Down

0 comments on commit bd027af

Please sign in to comment.