minor fix for emdownload
This commit is contained in:
parent
649f1c8ff7
commit
78b0c55baa
|
@ -38,16 +38,16 @@ mastodon = Mastodon(**options)
|
|||
|
||||
|
||||
if len(sys.argv) < 3:
|
||||
basepath = Path.cwd()
|
||||
patharg = Path.cwd()
|
||||
|
||||
else:
|
||||
basepath = sys.argv[2]
|
||||
patharg = sys.argv[2]
|
||||
|
||||
if patharg.startswith('~'):
|
||||
basepath = Path.expanduser(patharg)
|
||||
|
||||
elif patharg.startswith('/'):
|
||||
basepath = Path(arg)
|
||||
basepath = Path(patharg)
|
||||
|
||||
else:
|
||||
basepath = Path.cwd().joinpath(patharg)
|
||||
|
|
Loading…
Reference in a new issue