Make the roguebasin a proper module
This commit is contained in:
parent
d069ca4981
commit
638f2d8826
2 changed files with 10 additions and 5 deletions
10
roguebasin/__main__.py
Normal file
10
roguebasin/__main__.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env python3
|
||||
# Eryn Wells <eryn@erynwells.me>
|
||||
|
||||
from . import object
|
||||
from . import main
|
||||
|
||||
if __name__ == '__main__':
|
||||
import sys
|
||||
result = main.main(sys.argv)
|
||||
sys.exit(0 if not result else result)
|
|
@ -97,8 +97,3 @@ def main(argv):
|
|||
|
||||
if not handled:
|
||||
LOG.info(f'Unhandled event: {event}')
|
||||
|
||||
if __name__ == '__main__':
|
||||
import sys
|
||||
result = main(sys.argv)
|
||||
sys.exit(0 if not result else result)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue