diff options
author | Martin Sivak <msivak@redhat.com> | 2012-12-19 15:49:20 +0100 |
---|---|---|
committer | Martin Sivak <msivak@redhat.com> | 2013-01-02 13:53:03 +0100 |
commit | 7c9270bf48b010d8af2ccd4619a4f526775b0b12 (patch) | |
tree | 69f14af7762dfdbbf67026a6a4d2a11deaa6cb54 /anaconda | |
parent | 128aa94a4dabfde0e7d3b14ddcec6b88a9308b08 (diff) | |
download | anaconda-7c9270bf48b010d8af2ccd4619a4f526775b0b12.tar.gz anaconda-7c9270bf48b010d8af2ccd4619a4f526775b0b12.tar.xz anaconda-7c9270bf48b010d8af2ccd4619a4f526775b0b12.zip |
Pass addons paths to user interfaces
Diffstat (limited to 'anaconda')
-rwxr-xr-x | anaconda | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -404,7 +404,7 @@ def startDebugger(signum, frame): import epdb epdb.serve(skip=1) -def setupDisplay(anaconda, opts): +def setupDisplay(anaconda, opts, addon_paths=None): from pyanaconda.ui.tui.simpleline import App from pyanaconda.ui.tui.spokes.askvnc import AskVNCSpoke from pykickstart.constants import DISPLAY_MODE_TEXT @@ -581,7 +581,7 @@ def setupDisplay(anaconda, opts): doStartupX11Actions() # with X running we can initialize the UI interface - anaconda.initInterface() + anaconda.initInterface(addon_paths) anaconda.instClass.configure(anaconda) @@ -807,6 +807,9 @@ if __name__ == "__main__": os.system("udevadm control --env=ANACONDA=1") + # Collect all addon paths + addon_paths = collect_addon_paths(constants.ADDON_PATHS) + # If we were given a kickstart file on the command line, parse (but do not # execute) that now. Otherwise, load in defaults from kickstart files # shipped with the installation media. @@ -829,7 +832,6 @@ if __name__ == "__main__": break if not ksdata: - addon_paths = collect_addon_paths(constants.ADDON_PATHS) ksdata = kickstart.AnacondaKSHandler(addon_paths["ks"]) if ksdata.rescue.rescue: @@ -922,7 +924,7 @@ if __name__ == "__main__": initThreading() # now start the interface - setupDisplay(anaconda, opts) + setupDisplay(anaconda, opts, addon_paths) # Set flag to prompt for missing ks data if anaconda.displayMode == 'c': |