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)
|
Dosage 2.11 (released 15.1.2014)
|
||||||
|
|
||||||
Features:
|
Features:
|
||||||
|
|
5
dosage
5
dosage
|
@ -482,8 +482,9 @@ def warn_adult(scraperclass):
|
||||||
def main():
|
def main():
|
||||||
"""Parse options and execute commands."""
|
"""Parse options and execute commands."""
|
||||||
try:
|
try:
|
||||||
parser = setupOptions()
|
options = setupOptions().parse_args()
|
||||||
res = run(parser.parse_args())
|
options.basepath = os.path.expanduser(options.basepath)
|
||||||
|
res = run(options)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print("Aborted.")
|
print("Aborted.")
|
||||||
res = 1
|
res = 1
|
||||||
|
|
Loading…
Reference in a new issue