Skip to content
Browse files

Expand ~ in --dest-path option.

Closes #85
  • Loading branch information...
1 parent 70b18b6 commit bd027afa877af2f05b23460e03c0ee334fb1537c @scottr committed Sep 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 renamealbum
View
2 renamealbum
@@ -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)

0 comments on commit bd027af

Please sign in to comment.
Something went wrong with that request. Please try again.