Bug 1846523 - Call python mach on Windows from settings.gradle r=nalexander

Differential Revision: https://phabricator.services.mozilla.com/D185047
This commit is contained in:
Kagami Sascha Rosylight 2023-08-01 18:26:32 +00:00
parent bed5a2fbb8
commit ede511b1ea

View file

@ -7,6 +7,8 @@ apply from: "${topsrcdir}/mobile/android/gradle/mach_env.gradle"
def commandLine = ["${topsrcdir}/mach", "environment", "--format", "json", "--verbose"]
if (System.env.GRADLE_MACH_PYTHON) {
commandLine.addAll(0, [System.env.GRADLE_MACH_PYTHON])
} else if (System.properties["os.name"].contains("Windows")) {
commandLine.addAll(0, ["python"])
}
def proc = commandLine.execute(machEnv(topsrcdir), new File(topsrcdir))