up2k: replace progressbars with text

This commit is contained in:
ed 2021-04-16 21:23:53 +02:00
parent 69e54497aa
commit 49c2f37154
4 changed files with 270 additions and 80 deletions

10
.vscode/launch.py vendored
View file

@ -5,6 +5,7 @@
import os
import sys
import shlex
sys.path.insert(0, os.getcwd())
@ -16,9 +17,16 @@ with open(".vscode/launch.json", "r") as f:
oj = jstyleson.loads(tj)
argv = oj["configurations"][0]["args"]
try:
sargv = " ".join([shlex.quote(x) for x in argv])
print(sys.executable + " -m copyparty " + sargv + "\n")
except:
pass
argv = [os.path.expanduser(x) if x.startswith("~") else x for x in argv]
try:
copyparty(argv)
copyparty(["a"] + argv)
except SystemExit as ex:
if ex.code:
raise