summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-03-22 19:43:03 +0000
committerChris Lumens <clumens@redhat.com>2006-03-22 19:43:03 +0000
commit205ad15b10bfdccfad61621ba3b4b7fef392c40f (patch)
treeb0089a49f0f2b34d494f2b28ee43579a1406c959 /gui.py
parentdc78bd8e55b9b59a40b023bbbb43393f38582288 (diff)
downloadanaconda-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-xgui.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/gui.py b/gui.py
index ce687ef9c..1a961e6f9 100755
--- a/gui.py
+++ b/gui.py
@@ -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")