Merge pull request #528 from bwrsandman/patch-1

[FIX] Spawn gevent using same python executable
This commit is contained in:
Martin Trigaux 2014-06-24 16:06:57 +02:00
commit a6c579c4fc
1 changed files with 1 additions and 1 deletions

View File

@ -470,7 +470,7 @@ class PreforkServer(CommonServer):
cmd = nargs[0]
cmd = os.path.join(os.path.dirname(cmd), "openerp-gevent")
nargs[0] = cmd
popen = subprocess.Popen(nargs)
popen = subprocess.Popen([sys.executable] + nargs)
self.long_polling_pid = popen.pid
def worker_pop(self, pid):