Browse Source

CherryPy 8.1.2 - The .exe shouldn't restart with interpreter args

pull/743/head
Safihre 9 years ago
committed by shypike
parent
commit
e3d229104a
  1. 7
      cherrypy/process/wspbus.py

7
cherrypy/process/wspbus.py

@ -384,7 +384,12 @@ class Bus(object):
args = self._get_true_argv() args = self._get_true_argv()
except NotImplementedError: except NotImplementedError:
"""It's probably win32""" """It's probably win32"""
args = [sys.executable] + _args_from_interpreter_flags() + sys.argv # For the SABnzbd.exe binary we don't want interpreter flags
# https://github.com/cherrypy/cherrypy/issues/1526
if getattr(sys, 'frozen', False):
args = [sys.executable] + sys.argv
else:
args = [sys.executable] + _args_from_interpreter_flags() + sys.argv
self.log('Re-spawning %s' % ' '.join(args)) self.log('Re-spawning %s' % ' '.join(args))

Loading…
Cancel
Save