run-python3
v0.0.5
Published
A tool to run Python 3 scripts platform independently in package scripts.
Downloads
171
Readme
run-python3
The name of the Python 3 executable is python
on Windows, but python3
everywhere else (don't ask why). This makes it a hell to run a Python 3 script from package.json
scripts. This package introduces the run-python3
command that runs the correct Python 3 executable on all platforms.
How to use?
Install the package.
npm install run-python3
Use it in package.json
scripts:
...
"scripts": {
"command": "run-python3 my_cool_python_script.py"
},
...