Index: recipes.py |
diff --git a/recipes.py b/recipes.py |
index 092917380efe1d30abd991da98930ddf020def73..e71420e5d7307ac9d5dd5150456cccecbcdbc05e 100755 |
--- a/recipes.py |
+++ b/recipes.py |
@@ -12,7 +12,6 @@ |
import argparse |
import json |
import logging |
-import platform |
import os |
import subprocess |
import sys |
@@ -391,11 +390,10 @@ |
os.environ['RECIPES_RUN_BOOTSTRAP'] = '1' |
args = sys.argv |
- executable = ('python.exe' if sys.platform.lower() in ( |
- 'win32', 'cygwin') else 'python') |
- return subprocess.call([os.path.join( |
- ROOT_DIR, 'ENV', 'bin', executable), |
- os.path.join(ROOT_DIR, 'recipes.py')] + original_sys_argv[1:]) |
+ return subprocess.call( |
+ [os.path.join( |
+ os.path.dirname(os.path.realpath(__file__)), 'ENV/bin/python'), |
+ os.path.join(ROOT_DIR, 'recipes.py')] + original_sys_argv[1:]) |
if args.verbose: |
logging.getLogger().setLevel(logging.INFO) |