From 3bb283f9617c08809aaf1fbdba285a06d14961d3 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Thu, 15 Jun 2017 16:16:47 -0700 Subject: [PATCH] x.py: chdir to rust root folder, so that x.py can be called from other directories --- x.py | 1 + 1 file changed, 1 insertion(+) diff --git a/x.py b/x.py index e277ab98be10f..e89f6e58968cf 100755 --- a/x.py +++ b/x.py @@ -15,6 +15,7 @@ import sys rust_dir = os.path.dirname(os.path.abspath(__file__)) sys.path.append(os.path.join(rust_dir, "src", "bootstrap")) +os.chdir(rust_dir) import bootstrap bootstrap.main()