1diff --git a/src/main/java/com/google/devtools/build/lib/bazel/rules/python/python_stub_template.txt b/src/main/java/com/google/devtools/build/lib/bazel/rules/python/python_stub_template.txt
2index dac21c9a83..69b11c283f 100644
3--- a/src/main/java/com/google/devtools/build/lib/bazel/rules/python/python_stub_template.txt
4+++ b/src/main/java/com/google/devtools/build/lib/bazel/rules/python/python_stub_template.txt
5@@ -67,7 +67,7 @@ def FindPythonBinary(module_space):
6 return os.path.join(module_space, PYTHON_BINARY)
7 else:
8 # Case 4: Path has to be looked up in the search path.
9- return SearchPath(PYTHON_BINARY)
10+ return "NIX_STORE_PYTHON_PATH"
11
12 def CreatePythonPathEntries(python_imports, module_space):
13 parts = python_imports.split(':');