File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 2727# Runfiles-relative path to the coverage tool entry point, if any.
2828_COVERAGE_TOOL = "%coverage_tool%"
2929
30+ print ("Hi" )
3031
3132def _is_verbose ():
3233 return bool (os .environ .get ("RULES_PYTHON_BOOTSTRAP_VERBOSE" ))
Original file line number Diff line number Diff line change 2424# Runfiles-relative path to the main Python source file.
2525MAIN = "%main%"
2626
27+ # Whether this script is used as a sitecustomize script.
28+ USED_AS_SITECUSTOMIZE = "%used_as_sitecustomize%"
29+
2730# ===== Template substitutions end =====
2831
2932
@@ -375,6 +378,8 @@ def main():
375378 if runfiles_envkey :
376379 os .environ [runfiles_envkey ] = runfiles_envvalue
377380
381+ sys .path [0 :0 ] = prepend_path_entries
382+
378383 main_filename = os .path .join (module_space , main_rel_path )
379384 main_filename = get_windows_path_with_unc_prefix (main_filename )
380385 assert os .path .exists (main_filename ), (
@@ -386,8 +391,6 @@ def main():
386391
387392 sys .stdout .flush ()
388393
389- sys .path [0 :0 ] = prepend_path_entries
390-
391394 if os .environ .get ("COVERAGE_DIR" ):
392395 import _bazel_site_init
393396 coverage_enabled = _bazel_site_init .COVERAGE_SETUP
You can’t perform that action at this time.
0 commit comments