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`.
12 lines
239 B
Python
Executable file
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()
|