[IronPython] TypeError: unbound method open must be called with ....
JoeSox
joesox at gmail.com
Mon Mar 20 18:12:25 CET 2006
On 3/20/06, Dino Viehland <dinov at exchange.microsoft.com> wrote:
> but then we finally blow up because we don't support startfile on the os module:
>
Thanks Dino. I was wondering about that.
> >>> webbrowser.open_new('http://www.microsoft.com')
> Traceback (most recent call last):
> File , line 0, in input##669
> File C:\Python24\Lib\webbrowser.py, line 46, in open_new
> File C:\Python24\Lib\webbrowser.py, line 250, in open
> AttributeError: 'module' object has no attribute 'startfile'
>
> --------------
>
> I'll open a bug that we need to support startfile... the platform issue is a more difficult one as our platform is really "cli". So what to do for this one isn't entirely clear...
>
Would something like calling...
System.Diagnostics.Process.Start("http://www.microsoft.com");
be a solution for IronPython's startfile()?
--
Joseph
More information about the Ironpython-users
mailing list