Skip to content

Commit 6e0bd30

Browse files
revert to use __main__.py
so that python3 -m iriscasttools <args> can work
1 parent b69dd45 commit 6e0bd30

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from iriscasttools import __main__

iriscasttools/iriscasttools/main.py renamed to iriscasttools/iriscasttools/__main__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ def _prep_logging():
1111
logger.addHandler(logging.StreamHandler(sys.stdout))
1212

1313

14-
if __name__ == "__main__":
14+
def main():
1515
_prep_logging()
1616
cmd_args = parse_args(sys.argv[1:])
1717
print(get_iriscast_stats(cmd_args.as_csv, cmd_args.include_header))
18+
19+
20+
if __name__ == "__main__":
21+
main()

0 commit comments

Comments
 (0)