Expand user in basepath

This commit is contained in:
Bastian Kleineidam 2014-01-19 13:16:03 +01:00
parent 9984145819
commit 1f452527e5
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,10 @@
Dosage 2.12 (released xx.xx.2014)
Changes:
- cmdline: The --basepath option now replaces "~" or "~user" with the
users home directory.
Dosage 2.11 (released 15.1.2014)
Features:

5
dosage
View file

@ -482,8 +482,9 @@ def warn_adult(scraperclass):
def main():
"""Parse options and execute commands."""
try:
parser = setupOptions()
res = run(parser.parse_args())
options = setupOptions().parse_args()
options.basepath = os.path.expanduser(options.basepath)
res = run(options)
except KeyboardInterrupt:
print("Aborted.")
res = 1