change __main__.py to use relative imports

This should fix `python -m wormhole` on py2. Closes #315.
This commit is contained in:
Brian Warner 2018-11-13 09:59:36 -08:00
parent 24836cea63
commit 74da87bec2

View File

@ -1,4 +1,5 @@
from wormhole.cli import cli
from __future__ import absolute_import, print_function, unicode_literals
from .cli import cli
if __name__ != "__main__":
raise ImportError('this module should not be imported')