[infer] do not use variable in shebang line of python script

Reviewed By: jvillard

Differential Revision: D14207500

fbshipit-source-id: f9be12ab3
master
Sungkeun Cho 6 years ago committed by Facebook Github Bot
parent 990d9daf10
commit ab5496d192

@ -35,7 +35,7 @@ INFER_JSON_COSTS_REPORT = os.path.join(config.BUCK_INFER_OUT,
INFER_SCRIPT_NAME = 'infer_wrapper.py' INFER_SCRIPT_NAME = 'infer_wrapper.py'
INFER_SCRIPT = """\ INFER_SCRIPT = """\
#!/usr/bin/env {python_executable} #!/usr/bin/env python2.7
import subprocess import subprocess
import sys import sys
@ -73,7 +73,6 @@ def prepare_build(args):
logging.info('Creating %s' % infer_script_path) logging.info('Creating %s' % infer_script_path)
infer_script.write( infer_script.write(
utils.encode(INFER_SCRIPT.format( utils.encode(INFER_SCRIPT.format(
python_executable=sys.executable,
infer_command=infer_command))) infer_command=infer_command)))
st = os.stat(infer_script_path) st = os.stat(infer_script_path)

Loading…
Cancel
Save