Spawn openerp using same python executable

Solves issues of spawning wrong version of python or popping out of virtualenv
This commit is contained in:
Sandy Carter 2014-06-13 14:13:11 -04:00
parent 9c5819a7ea
commit bebfd0dd4b

View File

@ -13,6 +13,7 @@ import signal
import simplejson import simplejson
import subprocess import subprocess
import time import time
import sys
import dateutil.parser import dateutil.parser
import requests import requests
@ -528,6 +529,7 @@ class runbot_build(osv.osv):
# commandline # commandline
cmd = [ cmd = [
sys.executable,
server_path, server_path,
"--no-xmlrpcs", "--no-xmlrpcs",
"--xmlrpc-port=%d" % build.port, "--xmlrpc-port=%d" % build.port,