]> git.lizzy.rs Git - rust.git/blobdiff - x.py
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / x.py
diff --git a/x.py b/x.py
index b7df39c7bc9e65399d099e42f042df27167b8599..5dee953a31899ff46fe3f459de48d8249ce2a4b2 100755 (executable)
--- a/x.py
+++ b/x.py
@@ -22,7 +22,8 @@ if sys.version_info.major < 3:
             pass
 
 rust_dir = os.path.dirname(os.path.abspath(__file__))
-sys.path[:0] = [os.path.join(rust_dir, "src", "bootstrap")]
+# For the import below, have Python search in src/bootstrap first.
+sys.path.insert(0, os.path.join(rust_dir, "src", "bootstrap"))
 
 import bootstrap
 bootstrap.main()