X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=x.py;h=5dee953a31899ff46fe3f459de48d8249ce2a4b2;hb=ef934d9b632b8ac00276558824664c104b92b5f0;hp=6df4033d55d7273bd064cedbddf4c959ee1dd301;hpb=ebf579932dd3c89c64368e23501310611b0e0ccf;p=rust.git diff --git a/x.py b/x.py index 6df4033d55d..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.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()