minor fix for emdownload

This commit is contained in:
Izalia Mae 2021-01-09 03:54:14 -05:00
parent 649f1c8ff7
commit 78b0c55baa

View file

@ -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)