mirror of
https://github.com/atom/atom.git
synced 2026-01-15 01:48:15 -05:00
Assume the PYTHON env points to python.exe
This commit is contained in:
@@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user