Prepend the Python path for Windows for overriding
This commit is contained in:
committed by
calebboyd
parent
72afbe68a4
commit
dc76aea5c8
+2
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user