File: browser.py

package info (click to toggle)
python-cloup 2.0.0.post1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 944 kB
  • sloc: python: 5,193; makefile: 116
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)