about summary refs log tree commit diff
path: root/x.py
diff options
context:
space:
mode:
authorKaDiWa <kalle.wachsmuth@gmail.com>2023-01-30 17:30:39 +0100
committerKaDiWa <kalle.wachsmuth@gmail.com>2023-01-31 18:22:01 +0100
commit043c634a9cbe6ee303eadd0a31b11203b9ef9386 (patch)
treef910301ca9957961e3b5f819af12261eea0cd353 /x.py
parentb925031c5fb4cd5c8c23b655d15edca8ca0ac4ab (diff)
downloadrust-043c634a9cbe6ee303eadd0a31b11203b9ef9386.tar.gz
rust-043c634a9cbe6ee303eadd0a31b11203b9ef9386.zip
assert that `should_fix_bins_and_dylibs` has been run
Diffstat (limited to 'x.py')
-rwxr-xr-xx.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/x.py b/x.py
index b7df39c7bc9..5dee953a318 100755
--- 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()