Bug 1610774 - put mozfile at the beginning of the user's path if necessary in configure r=firefox-build-system-reviewers,mshal

Differential Revision: https://phabricator.services.mozilla.com/D60705

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Ricky Stewart 2020-01-22 18:36:14 +00:00
parent 4f3076794c
commit 42ed117231

View File

@ -302,8 +302,8 @@ def virtualenv_python2(env_python, build_env, mozillabuild, mozconfig, help):
# If we're not in the virtualenv, we need the mozfile module for
# find_program.
if normsep(sys.executable) != normsep(manager.python_path):
sys.path.append(os.path.join(
topsrcdir, 'testing', 'mozbase', 'mozfile'))
sys.path.insert(
0, os.path.join(topsrcdir, 'testing', 'mozbase', 'mozfile'))
if python:
found_python = find_program(python)