From 203ba10dbddbac04fa6b9c0afd8088f1811bc1a6 Mon Sep 17 00:00:00 2001 From: pictuga Date: Sat, 4 Nov 2017 13:17:12 +0100 Subject: [PATCH] Explain __init__.py and __main__.py use --- morss/__init__.py | 1 + morss/__main__.py | 1 + 2 files changed, 2 insertions(+) diff --git a/morss/__init__.py b/morss/__init__.py index 65894ed..7bd4c79 100644 --- a/morss/__init__.py +++ b/morss/__init__.py @@ -1 +1,2 @@ +# ran on `import morss` from .morss import * diff --git a/morss/__main__.py b/morss/__main__.py index 5716cce..a71ee90 100644 --- a/morss/__main__.py +++ b/morss/__main__.py @@ -1,3 +1,4 @@ +# ran on `python -m morss` from .morss import main if __name__ == '__main__':