MCPcopy Create free account
hub / github.com/cztomczak/cefpython / open_with_default_application

Function open_with_default_application

examples/screenshot.py:165–172  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

163
164
165def open_with_default_application(path):
166 if sys.platform.startswith("darwin"):
167 subprocess.call(("open", path))
168 elif os.name == "nt":
169 # noinspection PyUnresolvedReferences
170 os.startfile(path)
171 elif os.name == "posix":
172 subprocess.call(("xdg-open", path))
173
174
175def exit_app(browser):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected