node-calls-python
Advanced tools
Comparing version
{ | ||
"name": "node-calls-python", | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "This module lets you run python code inside node without spawning new processes", |
const { execSync } = require("child_process"); | ||
const path = require('path'); | ||
@@ -13,2 +14,19 @@ let stdout; | ||
console.log(stdout.toString()); | ||
let linkerLine = stdout.toString().trim(); | ||
// conda hack starts here | ||
try | ||
{ | ||
const condaBase = execSync("conda info --base 2>&1"); | ||
if (condaBase) | ||
{ | ||
const condaBaseString = condaBase.toString().trim(); | ||
if (linkerLine.includes(condaBaseString)) | ||
linkerLine += " -L" + path.join(condaBaseString, "lib") | ||
} | ||
} | ||
catch(e) | ||
{ | ||
} | ||
console.log(linkerLine); |
const { execSync } = require("child_process"); | ||
const path = require('path'); | ||
@@ -17,2 +18,13 @@ let stdout; | ||
// conda hack starts here | ||
try | ||
{ | ||
const condaBase = execSync("conda info --base 2>&1"); | ||
if (condaBase) | ||
splits.push("-L" + path.join(condaBase.toString().trim(), "lib")); | ||
} | ||
catch(e) | ||
{ | ||
} | ||
const result = []; | ||
@@ -24,3 +36,3 @@ splits.forEach(s => { | ||
console.log(result.join(" ")); | ||
console.log(" " + result.join(" ")); | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
85215
0.89%554
5.12%