Skip to content

Commit

Permalink
ENH: Add fitlins.__main__ to allow python -m fitlins
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Aug 5, 2020
1 parent 1e2235c commit 069a01b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions fitlins/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from .cli.run import main

if __name__ == '__main__':
import sys
from . import __name__
# `python -m <module>` typically displays the command as __main__.py
if '__main__.py' in sys.argv[0]:
sys.argv[0] = '%s -m %s' % (sys.executable, __name__)
main()

0 comments on commit 069a01b

Please sign in to comment.