Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
Launches an URL link based on the platform

        def launch_link(url_to_open, do_raise=None):
    """
    Launches an URL link based on the platform
    """
    # source: http://www.dwheeler.com/essays/open-files-urls.html
    the_platform = platform.system()
    if the_platform == 'Win':
        command = 'cmd /c start %s' % url_to_open
    elif the_platform == 'Darwin':
        command = 'open %s' % url_to_open
    elif the_platform == 'Linux':
        command = 'xdg-open %s' % url_to_open
    else:
        command = 'None'

    if command:
        try:
            os.system(command)
        except:
            if do_raise:
                raise
            else:
                pass #silently