Expand user in basepath
This commit is contained in:
parent
9984145819
commit
1f452527e5
2 changed files with 10 additions and 2 deletions
|
@ -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
5
dosage
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue