File: browser.py

package info (click to toggle)
python-cloup 3.0.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 936 kB
  • sloc: python: 5,371; makefile: 120
file content (7 lines) | stat: -rw-r--r-- 135 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
import os
import webbrowser
import sys

path = os.path.abspath(sys.argv[1])
print('Opening with browser:', path)
webbrowser.open(path)