bootstrap.py: Report build status

Move some code from x.py to bootstrap.py
This commit is contained in:
Vadim Petrochenkov 2017-03-03 05:27:07 +03:00
parent 3b454665ea
commit 11adac350b
2 changed files with 21 additions and 14 deletions

14
x.py
View file

@ -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 boostrap.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()