X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=x.py;h=e277ab98be10f30f945dad3570daeadf8e9c62d5;hb=6a3659427e9cdf7a03789cd8aded2e09d171d32a;hp=d281a6abc93e37ef7321bf83110ec54846e3df5a;hpb=d15a47749a7ee1f8bdeb4303e906b4f4bb3d6b81;p=rust.git diff --git a/x.py b/x.py index d281a6abc93..e277ab98be1 100755 --- a/x.py +++ b/x.py @@ -9,14 +9,12 @@ # option. This file may not be copied, modified, or distributed # except according to those terms. -import sys +# This file is only a "symlink" to bootstrap.py, all logic should go there. + import os -dir = os.path.dirname(__file__) -sys.path.append(os.path.abspath(os.path.join(dir, "src", "bootstrap"))) +import sys +rust_dir = os.path.dirname(os.path.abspath(__file__)) +sys.path.append(os.path.join(rust_dir, "src", "bootstrap")) import bootstrap - -try: - bootstrap.main() -except KeyboardInterrupt: - sys.exit() +bootstrap.main()