Minor cleanup of mach and bootstrap script

This commit is contained in:
Ravi Shankar 2016-09-01 17:04:38 +05:30
parent f83fe9e39b
commit b579841183
2 changed files with 32 additions and 39 deletions

3
mach
View file

@ -12,11 +12,10 @@
from __future__ import print_function, unicode_literals
import os
from os import path
import sys
def main(args):
topdir = path.abspath(path.dirname(sys.argv[0]))
topdir = os.path.abspath(os.path.dirname(sys.argv[0]))
sys.path.insert(0, os.path.join(topdir, "python"))
import mach_bootstrap
mach = mach_bootstrap.bootstrap(topdir)