From 3ead596a5dd3607f397a2c08e5f74bc0a07d07e5 Mon Sep 17 00:00:00 2001 From: probablycorey Date: Wed, 4 Jun 2014 11:44:52 -0700 Subject: [PATCH] Assume the PYTHON env points to python.exe --- script/utils/verify-requirements.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/script/utils/verify-requirements.js b/script/utils/verify-requirements.js index a0f4b74e5..e411b6a52 100644 --- a/script/utils/verify-requirements.js +++ b/script/utils/verify-requirements.js @@ -20,18 +20,15 @@ function verifyNode() { } function verifyPython27(cb) { - if (process.platform !== 'win32') { + if (false && process.platform !== 'win32') { cb(); } else { if (!pythonExecutable) { var systemDrive = process.env.SystemDrive || 'C:\\'; - pythonExecutable = path.join(systemDrive, 'Python27'); + pythonExecutable = path.join(systemDrive, 'Python27', 'python.exe'); - if (fs.existsSync(pythonExecutable)) { - pythonExecutable = path.join(pythonExecutable, 'python'); - } - else { + if (!fs.existsSync(pythonExecutable)) { pythonExecutable = 'python'; } }