We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b486351 commit 7f93b3eCopy full SHA for 7f93b3e
python/private/get_local_runtime_info.py
@@ -197,7 +197,12 @@ def _get_base_executable():
197
if sys._base_executable: # pylint: disable=protected-access
198
return sys._base_executable # pylint: disable=protected-access
199
except AttributeError:
200
+ # Bug reports indicate sys._base_executable doesn't exist in some cases,
201
+ # but it's not clear why.
202
+ # See https://github.com/bazel-contrib/rules_python/issues/3172
203
pass
204
+ # The normal sys.executable is the next-best guess if sys._base_executable
205
+ # is missing.
206
return sys.executable
207
208
0 commit comments