cmd = "%s %s -remote '%s' >/dev/null 2>&1" % (self.name,
raise_opt,
action)
- print cmd
rc = os.system(cmd)
if rc:
import time
# the TERM and DISPLAY cases, because we might be running Python from inside
# an xterm.
if os.environ.get("TERM") or os.environ.get("DISPLAY"):
- _tryorder = ("mozilla","netscape","kfm","grail","links","lynx","w3m")
+ _tryorder = ["mozilla","netscape","kfm","grail","links","lynx","w3m"]
# Easy cases first -- register console browsers if we have them.
if os.environ.get("TERM"):
#
if sys.platform[:3] == "win":
- _tryorder = ("netscape", "windows-default")
+ _tryorder = ["netscape", "windows-default"]
register("windows-default", WindowsDefault)
#
else:
# internet-config is the only supported controller on MacOS,
# so don't mess with the default!
- _tryorder = ("internet-config", )
+ _tryorder = ["internet-config"]
register("internet-config", InternetConfig)
#
#
if sys.platform[:3] == "os2" and _iscommand("netscape.exe"):
- _tryorder = ("os2netscape",)
+ _tryorder = ["os2netscape"]
register("os2netscape", None,
GenericBrowser("start netscape.exe %s"))