[IronPython] TypeError: unbound method open must be called with ....
dinov at exchange.microsoft.com
Mon Mar 20 18:19:49 CET 2006
Yes, calling System.Diagnostics.Process.Start is the solution - the one catch here is we need to set UseShellExecute = true (I'm not sure if that's the default or not, I belive the setting is in ProcessStartInfo as well).
Given the simplicity of the fix it should be there in beta 5...
Do you want to help develop Dynamic languages on CLR? (http://members.microsoft.com/careers/search/details.aspx?JobID=6D4754DE-11F0-45DF-8B78-DC1B43134038)
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of JoeSox
Sent: Monday, March 20, 2006 9:12 AM
To: Discussion of IronPython
Subject: Re: [IronPython] TypeError: unbound method open must be called with ....
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...
be a solution for IronPython's startfile()?
users mailing list
users at lists.ironpython.com
More information about the Ironpython-users