- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcli.js
More file actions
Latest commit
9 lines (8 loc) · 376 Bytes
/
Copy pathcli.js
File metadata and controls
9 lines (8 loc) · 376 Bytes
1
2
3
4
5
6
7
8
9
#!/usr/bin/env node
const{ spawnSync }=require('child_process');
constpath=require('path');
// Find python3 or python
constpython=process.platform==='win32' ? 'python' : 'python3';
constargs=['-m','datamorph.cli', ...process.argv.slice(2)];
constresult=spawnSync(python,args,{stdio: 'inherit'});
process.exit(result.status!=null ? result.status : 1);