https://github.com/kovacsv/run-python3
A tool to run Python 3 scripts platform independently in package scripts.
https://github.com/kovacsv/run-python3
npm python python3 script
Last synced: 11 months ago
JSON representation
A tool to run Python 3 scripts platform independently in package scripts.
- Host: GitHub
- URL: https://github.com/kovacsv/run-python3
- Owner: kovacsv
- License: mit
- Created: 2022-12-24T16:48:58.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-03T05:20:12.000Z (almost 3 years ago)
- Last Synced: 2025-03-17T10:38:29.170Z (11 months ago)
- Topics: npm, python, python3, script
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# run-python3
[](https://badge.fury.io/js/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"
},
...
```