Bug 1277087 - Always add in-tree search paths when bootstrapping mach. r=gps

This commit is contained in:
Mike Hommey 2016-06-01 07:37:56 +09:00
Родитель 79e124f382
Коммит 49fc9b5422
1 изменённых файлов: 2 добавлений и 5 удалений

Просмотреть файл

@ -233,11 +233,8 @@ def bootstrap(topsrcdir, mozilla_dir=None):
# case. For default behavior, we educate users and give them an opportunity
# to react. We always exit after creating the directory because users don't
# like surprises.
try:
import mach.main
except ImportError:
sys.path[0:0] = [os.path.join(mozilla_dir, path) for path in SEARCH_PATHS]
import mach.main
sys.path[0:0] = [os.path.join(mozilla_dir, path) for path in SEARCH_PATHS]
import mach.main
def telemetry_handler(context, data):
# We have not opted-in to telemetry