added two __main__.py for cli and server

This commit is contained in:
Kurt Rose 2017-05-23 21:01:21 -07:00
parent 073fcfa14d
commit 5cf9fe9f3e
2 changed files with 16 additions and 0 deletions

8
src/wormhole/__main__.py Normal file
View File

@ -0,0 +1,8 @@
if __name__ != "__main__":
raise ImportError('this module should not be imported')
from .cli import cli
cli.wormhole()

View File

@ -0,0 +1,8 @@
if __name__ != "__main__":
raise ImportError('this module should not be imported')
from wormhole.server import cli
cli.server()