mirror of
https://github.com/9001/copyparty.git
synced 2025-10-03 09:49:29 +02:00
v1.8.6
This commit is contained in:
parent
0778da6c4d
commit
9eaa9904e0
5 changed files with 45 additions and 5 deletions
|
@ -69,8 +69,13 @@ def uncomment(fpath):
|
|||
def main():
|
||||
print("uncommenting", end="", flush=True)
|
||||
try:
|
||||
if sys.argv[1] == "1":
|
||||
sys.argv.remove("1")
|
||||
raise Exception("disabled")
|
||||
|
||||
import multiprocessing as mp
|
||||
|
||||
mp.set_start_method("spawn", True)
|
||||
with mp.Pool(os.cpu_count()) as pool:
|
||||
pool.map(uncomment, sys.argv[1:])
|
||||
except Exception as ex:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue