launching default browser

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • alf

    #1

    launching default browser

    Hi,

    I wonder how to launch from python default Windows browser? In fact I
    have the same question for Linux.

    thx in advancve,
    --
    alf
  • Laurent Pointal

    #2
    Re: launching default browser

    alf wrote:
    Hi,
    >
    I wonder how to launch from python default Windows browser? In fact I
    have the same question for Linux.
    >
    thx in advancve,
    Via webbrowser module

    Source code: Lib/webbrowser.py The webbrowser module provides a high-level interface to allow displaying web-based documents to users. Under most circumstances, simply calling the open() function f...


    (note: its in top five in google search for Python + launch + browser...)


    Comment

    • half.italian@gmail.com

      #3
      Re: launching default browser

      On Jun 8, 8:41 am, alf <ask@mewrote:
      Hi,
      >
      I wonder how to launch from python default Windows browser? In fact I
      have the same question for Linux.
      >
      thx in advancve,
      --
      alf
      For posterity... On a mac

      [sean:~] sean% open http://www.google.com

      ~Sean

      Comment

      • alf

        #4
        Re: launching default browser

        Laurent Pointal wrote:
        >
        Via webbrowser module
        >
        Source code: Lib/webbrowser.py The webbrowser module provides a high-level interface to allow displaying web-based documents to users. Under most circumstances, simply calling the open() function f...

        >
        thx a lot. Just again Python positively surprises me.


        (note: its in top five in google search for Python + launch + browser...)
        so now it will be in top four :-).

        Comment

        Working...