diff -r d4190ed586a4 Lib/multiprocessing/forking.py --- a/Lib/multiprocessing/forking.py Wed Feb 03 05:19:44 2016 +0000 +++ b/Lib/multiprocessing/forking.py Fri Feb 26 17:34:42 2016 -0600 @@ -405,7 +405,8 @@ if _logger is not None: d['log_level'] = _logger.getEffectiveLevel() - if not WINEXE and not WINSERVICE: + if not WINEXE and not WINSERVICE and \ + not d['sys_argv'][0].lower().endswith("pythonservice.exe"): main_path = getattr(sys.modules['__main__'], '__file__', None) if not main_path and sys.argv[0] not in ('', '-c'): main_path = sys.argv[0]