webrowser and linux (also os.execv)
From: Tim Newsham (newsham_at_lava.net)
Date: 06/11/04
- Next message: Roger Upole: "Re: pywin32 support for CreateTypeLib2"
- Previous message: Kirk Strauser: "Deeply-nested class layout suggestions wanted"
- Next in thread: Tim Newsham: "Re: webrowser and linux (also os.execv)"
- Reply: Tim Newsham: "Re: webrowser and linux (also os.execv)"
- Reply: Donn Cave: "Re: webrowser and linux (also os.execv)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 10 Jun 2004 14:37:11 -1000
On redhat8 with Python 2.3.4:
import webbrowser
webbrowser.open("http://www.google.com/")
opens a browser (if not yet open) but fails to redirect it. Another
window of mine receives an error message:
channel 4: open failed: connect failed: Connection refused
The browser is the stock Mozilla browser that came with the
system. The same command works flawlessly under windows.
Any idea where the problem lies? I would like to get this
working in short order if possible (I can rebuild the python
package if necessary).
Oh, on an unrelated note, the os.execv and os.execve functions
do not allow an empty argv to be passed in, even though the
underlying C/Unix primitives do. Although it is rare that
one would want to pass in an empty argv (with argc set to zero)
there are rare situations when this is desired. The fact
that python tries to protect the user from making a mistake
by limiting the flexibility of the API is a deficiency.
Tim N.
- Next message: Roger Upole: "Re: pywin32 support for CreateTypeLib2"
- Previous message: Kirk Strauser: "Deeply-nested class layout suggestions wanted"
- Next in thread: Tim Newsham: "Re: webrowser and linux (also os.execv)"
- Reply: Tim Newsham: "Re: webrowser and linux (also os.execv)"
- Reply: Donn Cave: "Re: webrowser and linux (also os.execv)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|