Allow bashate to be called as a module

Adops official way of calling a module as a script.
Now user can do `python -m bashate ...` which can prove
to be useful when scripts cannot be installed or
when debugging is desired, or use of specific
python interpreter.

Change-Id: I7b3085df3e9f5874cf22470fec15c1b0532c846d
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
This commit is contained in:
Sorin Sbarnea 2018-07-04 19:30:27 +01:00
parent d4f6cfa3fb
commit 332e22d653
No known key found for this signature in database
GPG Key ID: B85725D917D27B8A
1 changed files with 5 additions and 0 deletions

5
bashate/__main__.py Normal file
View File

@ -0,0 +1,5 @@
from bashate import main
import sys
if __name__ == "__main__":
sys.exit(main())