]> 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 6df4033d55d7273bd064cedbddf4c959ee1dd301..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.append(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()