Socket
Book a DemoInstallSign in
Socket

node-calls-python

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-calls-python - npm Package Compare versions

Comparing version

to
1.8.1

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.