mirror of
https://github.com/9001/copyparty.git
synced 2025-10-05 19:42:29 +02:00
up2k: replace progressbars with text
This commit is contained in:
parent
69e54497aa
commit
49c2f37154
4 changed files with 270 additions and 80 deletions
10
.vscode/launch.py
vendored
10
.vscode/launch.py
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue