Skip to content

Commit

Permalink
Add support for 'python -m pgactivity'
Browse files Browse the repository at this point in the history
In addition to calling 'pg_activity' script, we now allow the
'pgactivity' package to be executed as a __main__.

https://docs.python.org/3/using/cmdline.html#cmdoption-m
  • Loading branch information
dlax committed Mar 16, 2021
1 parent d47dc47 commit 0b9bbe8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pgactivity/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from .cli import main

if __name__ == "__main__":
main()

0 comments on commit 0b9bbe8

Please sign in to comment.