change __main__.py
to use relative imports
This should fix `python -m wormhole` on py2. Closes #315.
This commit is contained in:
parent
24836cea63
commit
74da87bec2
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue
Block a user