Skip to content

Commit

Permalink
[debug...]
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax committed Nov 11, 2020
1 parent 21425cc commit d6a4b7a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .evergreen/SetupEnv.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$version = "12.18.4"
$Env:PATH = "$PSScriptRoot\node-v$version-win-x64;C:\Program Files\Git\mingw32\libexec\git-core;$Env:PATH"
$Env:PATH = "$PSScriptRoot\node-v$version-win-x64;C:\Python39;C:\Program Files\Git\mingw32\libexec\git-core;$Env:PATH"
$Env:NODE_JS_VERSION = "$version"

echo "Using node version:"
Expand All @@ -8,3 +8,5 @@ node --version
echo "Using npm version:"
npm --version

echo "python3 version:"
python -V
9 changes: 8 additions & 1 deletion testing/integration-testing-hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,14 @@ async function execMlaunch(command: MlaunchCommand, ...args: string[]): Promise<
if (stderr.includes('Python 3')) {
python = 'python';
}
} catch {}
} catch {
if (process.env.PYTHON) {
const { stderr } = await execFile(process.env.PYTHON, ['-V']);
if (stderr.includes('Python 3')) {
python = process.env.PYTHON;
}
}
}
}
if (!python) {
throw new Error('Could not find Python 3.x installation, install mlaunch manually');
Expand Down

0 comments on commit d6a4b7a

Please sign in to comment.