Commit 162ca259 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Make open_file() work with Path objects

parent 85e0e0da
......@@ -1587,6 +1587,8 @@ def open_file(path):
if == 'nt':
# Call str() to make it work with pathlib.Path
path = str(path)
if not path.startswith('file://'):
path = 'file://' + path
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment