Add main to subiquity, and use it frm make ui-view.

Add a main to subiquity so that you can run subiquity with:
 python3 -m subiquity
This commit is contained in:
Scott Moser 2018-06-06 14:30:03 -04:00 committed by GitHub
parent 865afe700b
commit 74a5f16535
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -33,10 +33,10 @@ dryrun: probert i18n
$(MAKE) ui-view DRYRUN="--dry-run --uefi" $(MAKE) ui-view DRYRUN="--dry-run --uefi"
ui-view: ui-view:
(bin/$(PYTHONSRC)-tui $(DRYRUN) $(MACHARGS)) $(PYTHON) -m subiquity $(DRYRUN) $(MACHARGS)
ui-view-serial: ui-view-serial:
(TERM=att4424 bin/$(PYTHONSRC)-tui $(DRYRUN) --serial) (TERM=att4424 $(PYTHON) -m subiquity $(DRYRUN) --serial)
lint: flake8 lint: flake8

5
subiquity/__main__.py Normal file
View File

@ -0,0 +1,5 @@
import sys
if __name__ == '__main__':
from subiquity.cmd.tui import main
sys.exit(main())