Skip to content

Commit

Permalink
revert to use __main__.py
Browse files Browse the repository at this point in the history
so that python3 -m iriscasttools <args> can work
  • Loading branch information
anish-mudaraddi committed Mar 31, 2023
1 parent b69dd45 commit 6e0bd30
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions iriscasttools/iriscasttools/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from iriscasttools import __main__
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ def _prep_logging():
logger.addHandler(logging.StreamHandler(sys.stdout))


if __name__ == "__main__":
def main():
_prep_logging()
cmd_args = parse_args(sys.argv[1:])
print(get_iriscast_stats(cmd_args.as_csv, cmd_args.include_header))


if __name__ == "__main__":
main()

0 comments on commit 6e0bd30

Please sign in to comment.