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)

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> 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
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to