expanduser() on dest
This commit is contained in:
parent
51ab6cdc0d
commit
0380006e00
1 changed files with 3 additions and 1 deletions
|
@ -157,7 +157,9 @@ def main():
|
|||
|
||||
# Default created file name (for single-file archives) to
|
||||
# <file>.<compression>
|
||||
if not archive and not dest:
|
||||
if dest:
|
||||
dest = os.path.expanduser(dest)
|
||||
elif not archive:
|
||||
dest = '%s.%s' % (expanded_paths[0], compression)
|
||||
|
||||
# Force archives to specify 'dest'
|
||||
|
|
Loading…
Reference in a new issue