Skip to content

Commit

Permalink
change __main__.py to use relative imports
Browse files Browse the repository at this point in the history
This should fix `python -m wormhole` on py2. Closes #315.
  • Loading branch information
warner committed Nov 13, 2018
1 parent 24836ce commit 74da87b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wormhole/__main__.py
Original file line number Diff line number Diff line change
@@ -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')
Expand Down

1 comment on commit 74da87b

@smammy
Copy link

@smammy smammy commented on 74da87b Dec 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this breaks pyinstaller.

Please sign in to comment.