An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# run-python3

[![npm version](https://badge.fury.io/js/run-python3.svg)](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"
},
...
```