[Python-Dev] webbrowser module
Fred L. Drake, Jr.
fdrake@beopen.com
Fri, 7 Jul 2000 13:05:09 -0400 (EDT)
Skip Montanaro writes:
> I'm running kde. From bash I see an environment variable named KDEDIR whose
> value is "/usr". Would that be a possible extra test to assure that kde is
> running before deciding to launch kfm?
Sounds good! How about this for the non-MacOS portion of the
default-browser determination:
DEFAULT_BROWSER = "command-line"
if sys.platform[:3] == "win":
del _browsers["kfm"]
register("windows-default", WindowsDefault)
DEFAULT_BROWSER = "windows-default"
elif os.environ.get("DISPLAY"):
if os.environ.get("KDEDIR"):
DEFAULT_BROWSER = "kfm"
elif _iscommand("netscape"):
DEFAULT_BROWSER = "netscape"
-Fred
--
Fred L. Drake, Jr. <fdrake at beopen.com>
BeOpen PythonLabs Team Member