From ab5496d192f8fb9b4f3cef90896ee38c9a734774 Mon Sep 17 00:00:00 2001 From: Sungkeun Cho Date: Tue, 26 Feb 2019 02:32:15 -0800 Subject: [PATCH] [infer] do not use variable in shebang line of python script Reviewed By: jvillard Differential Revision: D14207500 fbshipit-source-id: f9be12ab3 --- infer/lib/python/inferlib/bucklib.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/infer/lib/python/inferlib/bucklib.py b/infer/lib/python/inferlib/bucklib.py index a81b20954..3b805d086 100644 --- a/infer/lib/python/inferlib/bucklib.py +++ b/infer/lib/python/inferlib/bucklib.py @@ -35,7 +35,7 @@ INFER_JSON_COSTS_REPORT = os.path.join(config.BUCK_INFER_OUT, INFER_SCRIPT_NAME = 'infer_wrapper.py' INFER_SCRIPT = """\ -#!/usr/bin/env {python_executable} +#!/usr/bin/env python2.7 import subprocess import sys @@ -73,7 +73,6 @@ def prepare_build(args): logging.info('Creating %s' % infer_script_path) infer_script.write( utils.encode(INFER_SCRIPT.format( - python_executable=sys.executable, infer_command=infer_command))) st = os.stat(infer_script_path)