Prepend the Python path for Windows for overriding

This commit is contained in:
James M. Greene
2017-07-05 15:04:54 -05:00
committed by calebboyd
parent 72afbe68a4
commit dc76aea5c8
+2 -2
View File
@@ -471,8 +471,8 @@ function _getNodeCompiler(nodeFileDir, nodeConfigureArgs, nodeMakeArgs, nodeVCBu
var newEnv = process.env
if (isPy !== "python") {
// add the dir of the suposed python exe to path
newEnv.path = process.env.PATH + ";" + path.dirname(isPy)
// add the dir of the supposed python exe to path
newEnv.path = path.dirname(isPy) + ";" + process.env.PATH
}
if (!nodeVCBuildArgs || !nodeVCBuildArgs.length) {