1 # Copyright (C) 2009, Thomas Leonard
2 # See the README file for details, or visit http://0install.net.
4 from __future__
import print_function
8 def open_in_browser(link
):
9 browser
= os
.environ
.get('BROWSER', 'firefox')
14 os
.spawnlp(os
.P_NOWAIT
, browser
, browser
, link
)
16 except Exception as ex
:
17 print("Error", ex
, file=sys
.stderr
)