Skip to content

Commit 3bb283f

Browse files
committed
x.py: chdir to rust root folder, so that x.py can be called from other directories
1 parent 554c685 commit 3bb283f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

x.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import sys
1616
rust_dir = os.path.dirname(os.path.abspath(__file__))
1717
sys.path.append(os.path.join(rust_dir, "src", "bootstrap"))
18+
os.chdir(rust_dir)
1819

1920
import bootstrap
2021
bootstrap.main()

0 commit comments

Comments
 (0)