|
@@ -1,5 +1,5 @@
|
|
-import inspect
|
|
|
|
import logging
|
|
import logging
|
|
|
|
+import multiprocessing
|
|
import os
|
|
import os
|
|
import sys
|
|
import sys
|
|
import webbrowser
|
|
import webbrowser
|
|
@@ -58,7 +58,7 @@ def run(*,
|
|
globals.excludes = [e.strip() for e in exclude.split(',')]
|
|
globals.excludes = [e.strip() for e in exclude.split(',')]
|
|
globals.tailwind = tailwind
|
|
globals.tailwind = tailwind
|
|
|
|
|
|
- if inspect.stack()[-2].filename.endswith('spawn.py'):
|
|
|
|
|
|
+ if multiprocessing.current_process().name != 'MainProcess':
|
|
return
|
|
return
|
|
|
|
|
|
if show:
|
|
if show:
|