From bebfd0dd4bec0ff9e812315857a5b72d01f9948a Mon Sep 17 00:00:00 2001 From: Sandy Carter Date: Fri, 13 Jun 2014 14:13:11 -0400 Subject: [PATCH] Spawn openerp using same python executable Solves issues of spawning wrong version of python or popping out of virtualenv --- runbot/runbot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runbot/runbot.py b/runbot/runbot.py index 1c3c55da..9934992e 100644 --- a/runbot/runbot.py +++ b/runbot/runbot.py @@ -13,6 +13,7 @@ import signal import simplejson import subprocess import time +import sys import dateutil.parser import requests @@ -528,6 +529,7 @@ class runbot_build(osv.osv): # commandline cmd = [ + sys.executable, server_path, "--no-xmlrpcs", "--xmlrpc-port=%d" % build.port,