From e069ebd60171c193756c368ba1c4de97ce8e3c2f Mon Sep 17 00:00:00 2001 From: Stephen Daves Date: Thu, 21 Jan 2021 16:51:50 -0500 Subject: [PATCH] Add main entry module This allows calling `python -m shortcut whatever` to create a shortcut for the `whatever` file. Currently the shortcut binary must be in your system path to be able to use it and this allows using the existing `python` binary to invoke shortcut. --- shortcut/__main__.py | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 shortcut/__main__.py diff --git a/shortcut/__main__.py b/shortcut/__main__.py new file mode 100644 index 0000000..fba0d39 --- /dev/null +++ b/shortcut/__main__.py @@ -0,0 +1,2 @@ +import shortcut +shortcut.main()