diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-12-31 09:14:36 -0800 |
|---|---|---|
| committer | Jon Dufresne <jon.dufresne@gmail.com> | 2018-12-31 09:14:36 -0800 |
| commit | 40bb63128de14b98fc083e6807bdd78ee8eb487b (patch) | |
| tree | 5a71ef609734e7d7c1191c2d5f825a0c9c6f0021 /unidecode | |
| parent | 4b6a097f4ada716639aa1727aaaab64a829a873f (diff) | |
| download | unidecode-40bb63128de14b98fc083e6807bdd78ee8eb487b.tar.gz | |
Add __main__.py file so the CLI can be executed as a module
Allows running the following command to execute the CLI
$ python -m unidecode ...
https://docs.python.org/3/library/__main__.html
> For a package, the same effect can be achieved by including a
> __main__.py module, the contents of which will be executed when the
> module is run with -m.
Diffstat (limited to 'unidecode')
| -rw-r--r-- | unidecode/__main__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unidecode/__main__.py b/unidecode/__main__.py new file mode 100644 index 0000000..390f842 --- /dev/null +++ b/unidecode/__main__.py @@ -0,0 +1,3 @@ +from unidecode.util import main + +main() |
