Philipp Hörist pushed to branch master at gajim / gajim
Commits:
162ca259 by Philipp Hörist at 2019-12-27T16:59:32Z
Make open_file() work with Path objects
- - - - -
1 changed file:
- gajim/common/helpers.py
Changes:
=====================================
gajim/common/helpers.py
=====================================
@@ -1587,6 +1587,8 @@ def open_file(path):
if os.name == 'nt':
os.startfile(path)
else:
+ # Call str() to make it work with pathlib.Path
+ path = str(path)
if not path.startswith('file://'):
path = 'file://' + path
Gio.AppInfo.launch_default_for_uri(path)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/162ca25902ab756af861e06f0253868228d1e6e1
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/162ca25902ab756af861e06f0253868228d1e6e1
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits