debian-forge/osbuild/__main__.py
Christian Kellner 53f6c41917 osbuild: use osbuild_cli directly as main entry
Instead of having a another indirection via `main_cli`, directly
use `osbuild_cli` in as main function in `__main__.py`. Also use
that in as the entry point for the generated `osbuild` executable.
Change `osbuild_cli` to be self-contained, i.e. it directly uses
`sys.argv` and `sys.exit`.
2020-07-17 16:30:46 +01:00

12 lines
239 B
Python
Executable file

"""OSBuild Main
This specifies the entrypoint of the osbuild module when run as executable. For
compatibility we will continue to run the CLI.
"""
from osbuild.main_cli import osbuild_cli as main
if __name__ == "__main__":
main()