(path)
| 163 | |
| 164 | |
| 165 | def 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 | |
| 175 | def exit_app(browser): |