diff options
-rw-r--r-- | firstboot/gui/__main__.py | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/firstboot/gui/__main__.py b/firstboot/gui/__main__.py index 0c5c491..293c9ac 100644 --- a/firstboot/gui/__main__.py +++ b/firstboot/gui/__main__.py @@ -6,12 +6,27 @@ import os import gi.overrides for p in os.environ.get("ANACONDA_WIDGETS_OVERRIDES", "").split(":"): gi.overrides.__path__.insert(0, p) - + +# Too bad anaconda does not have modularized logging +from pyanaconda import anaconda_log +anaconda_log.init() + class O(object): pass g = gui.FirstbootGraphicalUserInterface(None, None, None) -data = O() + +class O(object): + def __init__(self, d): + self.__dict__ = d + +data = O({ + "rootpw": O({ + "lock": False, + + }) + }) + g.setup(data) g.run() |