diff options
author | Chris Lumens <clumens@redhat.com> | 2006-07-12 13:59:19 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-07-12 13:59:19 +0000 |
commit | d0dec240385acda60a0591fbddd1cbcbdf9c20bc (patch) | |
tree | d5dfc075f489681cf1577170d06ad47d9b803329 /textw | |
parent | 143669aca0a87f5574924ea5aa6a52450a5311c6 (diff) | |
download | anaconda-d0dec240385acda60a0591fbddd1cbcbdf9c20bc.tar.gz anaconda-d0dec240385acda60a0591fbddd1cbcbdf9c20bc.tar.xz anaconda-d0dec240385acda60a0591fbddd1cbcbdf9c20bc.zip |
Use subprocess instead of our own code. Fix all calls to execWith* so
the command is no longer the first argument, since subprocess doesn't work
that way. Remove unneeded /proc/e820info cruft. Remove iutil.rmrf.
Diffstat (limited to 'textw')
-rw-r--r-- | textw/timezone_text.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/textw/timezone_text.py b/textw/timezone_text.py index 37a368d0a..e9aa9f7d2 100644 --- a/textw/timezone_text.py +++ b/textw/timezone_text.py @@ -36,16 +36,11 @@ class TimezoneWindow: return zoneList def updateSysClock(self): - if os.access("/sbin/hwclock", os.X_OK): - args = [ "/sbin/hwclock" ] - else: - args = [ "/usr/sbin/hwclock" ] - - args.append("--hctosys") + args = ["--hctosys"] if self.c.selected(): args.append("--utc") - iutil.execWithRedirect(args[0], args) + iutil.execWithRedirect("hwclock", args, searchPath=1) self.g.setTimer(500) self.updateClock() |