mirror of
https://github.com/Threnklyn/dungeon-sheets.git
synced 2026-06-07 13:15:53 +02:00
turn off multiprocessing if debug
This commit is contained in:
@@ -583,7 +583,10 @@ def main():
|
|||||||
filenames = [f for f in os.listdir('.') if os.path.splitext(f)[1] == '.py']
|
filenames = [f for f in os.listdir('.') if os.path.splitext(f)[1] == '.py']
|
||||||
else:
|
else:
|
||||||
filenames = [args.filename]
|
filenames = [args.filename]
|
||||||
|
if args.debug:
|
||||||
|
for filename in filenames:
|
||||||
|
_build(filename, args)
|
||||||
|
else:
|
||||||
with Pool(cpu_count()) as p:
|
with Pool(cpu_count()) as p:
|
||||||
p.starmap(_build, product(filenames, [args]))
|
p.starmap(_build, product(filenames, [args]))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user