pyinvoke / invocations

Reusable Invoke tasks
http://invocations.readthedocs.io
BSD 2-Clause "Simplified" License
165 stars 28 forks source link

Make docs.browse cross-platform compatible #6

Closed sloria closed 3 years ago

wo0dyn commented 9 years ago

Hi @sloria,

Have you ever considered using webbrowser from python stdlib? :wink:

import webbrowser

@task(name='browse')
def _browse(c):
    index = os.path.join(c.sphinx.target, c.sphinx.target_file)
    webbrowser.open_new_tab(index)
sloria commented 9 years ago

Thanks @wo0dyn ; didn't know about that module. Updated my PR accordingly.

wo0dyn commented 9 years ago

@sloria › you're welcome. :+1: for the update!