diff options
author | Chris Lumens <clumens@redhat.com> | 2006-03-22 19:43:03 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-03-22 19:43:03 +0000 |
commit | 205ad15b10bfdccfad61621ba3b4b7fef392c40f (patch) | |
tree | b0089a49f0f2b34d494f2b28ee43579a1406c959 /gui.py | |
parent | dc78bd8e55b9b59a40b023bbbb43393f38582288 (diff) | |
download | anaconda-205ad15b10bfdccfad61621ba3b4b7fef392c40f.tar.gz anaconda-205ad15b10bfdccfad61621ba3b4b7fef392c40f.tar.xz anaconda-205ad15b10bfdccfad61621ba3b4b7fef392c40f.zip |
Create a dictionary in flags.py for storing /proc/cmdline. Nuke all
references to /proc/cmdline from everywhere else in favor of this dict.
Diffstat (limited to 'gui.py')
-rwxr-xr-x | gui.py | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -15,12 +15,12 @@ # import os +from flags import flags os.environ["PYGTK_DISABLE_THREADS"] = "1" os.environ["GNOME_DISABLE_CRASH_DIALOG"] = "1" # we only want to enable the accessibility stuff if requested for now... -buf = open("/proc/cmdline").read() -if buf.find("dogtail") != -1: +if flags.cmdline.has_key("dogtail"): os.environ["GTK_MODULES"] = "gail:atk-bridge" import errno @@ -38,7 +38,6 @@ import kudzu import gettext import warnings from language import expandLangs -from flags import flags from constants import * from network import hasActiveNetDev import floppy @@ -600,13 +599,13 @@ class ExceptionWindow: textbuf.set_text(shortTraceback) # Remove the floppy button if we don't need it. - if not floppy.hasFloppyDevice() and not DEBUG: + if not floppy.hasFloppyDevice() and not flags.debug: buttonBox = exnxml.get_widget("buttonBox") floppyButton = exnxml.get_widget("floppyButton") buttonBox.remove(floppyButton) # Remove the remote button if there's no network. - if not hasActiveNetDev() and not DEBUG: + if not hasActiveNetDev() and not flags.debug: buttonBox = exnxml.get_widget("buttonBox") remoteButton = exnxml.get_widget("remoteButton") buttonBox.remove(remoteButton) @@ -1385,7 +1384,7 @@ class InstallControlWindow: if p is None: print _("Unable to load title bar") - if DEBUG: + if flags.debug: self.mainxml.get_widget("debugButton").show_now() self.installFrame = self.mainxml.get_widget("installFrame") |