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`.
This commit is contained in:
parent
7e392f819e
commit
53f6c41917
3 changed files with 6 additions and 17 deletions
2
setup.py
2
setup.py
|
|
@ -11,7 +11,7 @@ setuptools.setup(
|
|||
],
|
||||
entry_points={
|
||||
"console_scripts": [
|
||||
"osbuild = osbuild.main_cli:main_cli"
|
||||
"osbuild = osbuild.main_cli:osbuild_cli"
|
||||
]
|
||||
},
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue