Bug 1717051: Reuse "requirements" logic in mach_initialize r=ahal

Rather than re-implementing it as `search_path()`, use the existing
`MachEnvRequirements` tool to parse `mach_virtualenv_requirements.txt`

Differential Revision: https://phabricator.services.mozilla.com/D126280
This commit is contained in:
Mitchell Hentges
2021-09-27 20:27:19 +00:00
parent ee5544e49d
commit 361661f648
6 changed files with 46 additions and 42 deletions

View File

@@ -21,6 +21,7 @@ except ImportError:
base_dir = os.path.abspath(os.path.dirname(__file__))
sys.path.insert(0, os.path.join(base_dir, "python", "mach"))
sys.path.insert(0, os.path.join(base_dir, "python", "mozboot"))
sys.path.insert(0, os.path.join(base_dir, "python", "mozbuild"))
sys.path.insert(0, os.path.join(base_dir, "third_party", "python", "six"))