We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfcfc91 commit c47c315Copy full SHA for c47c315
Lib/multiprocessing/forking.py
@@ -405,7 +405,8 @@ def get_preparation_data(name):
405
if _logger is not None:
406
d['log_level'] = _logger.getEffectiveLevel()
407
408
- if not WINEXE and not WINSERVICE:
+ if not WINEXE and not WINSERVICE and \
409
+ not d['sys_argv'][0].lower().endswith('pythonservice.exe'):
410
main_path = getattr(sys.modules['__main__'], '__file__', None)
411
if not main_path and sys.argv[0] not in ('', '-c'):
412
main_path = sys.argv[0]
0 commit comments