webbrowser.open works in IDLE and cmd shell but not from cygwin prompt
Steve Holden
steve at holdenweb.com
Sat Apr 28 11:21:49 EDT 2007
Gregory Bloom wrote:
> On Apr 27, 3:12 am, Michael Hoffman <cam.ac... at mh391.invalid> wrote:
>>> And, more to the point, how can I use webbrowser from scripts launched under
>> > cygwin?
>>
>> If you're using native Windows Python as you seem to be, try
>> webbrowser.get("windows-default").open_new(url)
>>
>> If you want to use Cygwin Python instead, I submitted a patch more than
>> 1.5 years ago to allow it, but it hasn't been reviewed:
>>
>> http://python.org/sf/1244861
>> --
>> Michael Hoffman
>
>
> Awesome! That works perfectly. Thanks.
>
>
Interestingly when I tried this under Cygwin I got the links browser
displaying the material from the given URL.
That's different enough that I might keep it like that.:-)
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
------------------ Asciimercial ---------------------
Get Python in your .sig and on the web. Blog and lens
holdenweb.blogspot.com squidoo.com/pythonology
tag items: del.icio.us/steve.holden/python
All these services currently offer free registration!
-------------- Thank You for Reading ----------------
More information about the Python-list
mailing list