diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-06-27 23:54:37 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-06-27 23:54:50 +0100 |
commit | 7e51947f475db6ac96d6a4f05559dcd785a8bc42 (patch) | |
tree | c2d7f0e2b7dd4328cfa90ae1e480e095468efb99 /poezio | |
parent | 0447188eac65507d9d126f75d70e5333f435894c (diff) | |
download | poezio-7e51947f475db6ac96d6a4f05559dcd785a8bc42.tar.gz poezio-7e51947f475db6ac96d6a4f05559dcd785a8bc42.tar.bz2 poezio-7e51947f475db6ac96d6a4f05559dcd785a8bc42.tar.xz poezio-7e51947f475db6ac96d6a4f05559dcd785a8bc42.zip |
Launch poezio as a module package.
Diffstat (limited to 'poezio')
-rw-r--r-- | poezio/__init__.py | 1 | ||||
-rw-r--r-- | poezio/__main__.py | 6 | ||||
-rw-r--r-- | poezio/poezio.py | 6 |
3 files changed, 6 insertions, 7 deletions
diff --git a/poezio/__init__.py b/poezio/__init__.py index 9fdbcc02..e69de29b 100644 --- a/poezio/__init__.py +++ b/poezio/__init__.py @@ -1 +0,0 @@ -from poezio.poezio import main diff --git a/poezio/__main__.py b/poezio/__main__.py new file mode 100644 index 00000000..5f34230b --- /dev/null +++ b/poezio/__main__.py @@ -0,0 +1,6 @@ +from poezio.poezio import test_curses, main + +if test_curses(): + main() +else: + sys.exit(1) diff --git a/poezio/poezio.py b/poezio/poezio.py index 9fb6fb73..361daa91 100644 --- a/poezio/poezio.py +++ b/poezio/poezio.py @@ -107,9 +107,3 @@ def main(): cocore.reset_curses() except: pass - -if __name__ == '__main__': - if test_curses(): - main() - else: - sys.exit(1) |