From e8e971b54f75f9501f9169d4998935b48fe791b7 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Thu, 28 Dec 2017 11:24:59 -0800 Subject: [PATCH] Be specific about the major version of python Fixes livegrep/livegrep#136 --- node/defs.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/defs.bzl b/node/defs.bzl index 67b273b..8efef18 100644 --- a/node/defs.bzl +++ b/node/defs.bzl @@ -21,7 +21,7 @@ runfiles_tmpl = '''#!/bin/bash -eu # to prevent Python from prepending '' to sys.path and allowing # modules from $PWD to be imported as top level modules. -STUBPATH=$(/usr/bin/env python -ESs <(echo "import os.path; print(os.path.realpath(os.path.abspath('$0').split('.runfiles')[0]));")) +STUBPATH=$(/usr/bin/env python2.7 -ESs <(echo "import os.path; print(os.path.realpath(os.path.abspath('$0').split('.runfiles')[0]));")) STUBPATH=$STUBPATH.runfiles export RUNFILES=$STUBPATH/{workspace_name}