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
parent da49ee7ccf
commit d9fc7e526f

View File

@@ -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