Skip to content

Commit 7f93b3e

Browse files
authored
add comment about base_exe missing
1 parent b486351 commit 7f93b3e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

python/private/get_local_runtime_info.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,12 @@ def _get_base_executable():
197197
if sys._base_executable: # pylint: disable=protected-access
198198
return sys._base_executable # pylint: disable=protected-access
199199
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
200203
pass
204+
# The normal sys.executable is the next-best guess if sys._base_executable
205+
# is missing.
201206
return sys.executable
202207

203208

0 commit comments

Comments
 (0)