UNPKG

@pipcook/boa-cloud

Version:

Use Python modules seamlessly in Node.js

13 lines (9 loc) 305 B
#!/usr/bin/env node const fs = require('fs'); const { run, getCondaPath } = require('./utils'); const args = process.argv.slice(2).join(' '); const condaPath = getCondaPath(); if (!fs.existsSync(condaPath)) { throw new TypeError('conda env is not initialized.'); } run(`${condaPath}/bin/pip`, args);