mirror of
https://github.com/ankitects/anki.git
synced 2025-11-14 00:27:13 -05:00
if trying to open a unicode folder, make sure we encode to filesystem
This commit is contained in:
parent
39d3ffd6d3
commit
4908c3f268
1 changed files with 2 additions and 0 deletions
|
|
@ -2759,6 +2759,8 @@ to work with this version of Anki."""))
|
||||||
if path is None:
|
if path is None:
|
||||||
path = self.pluginsFolder()
|
path = self.pluginsFolder()
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
|
if isinstance(path, unicode):
|
||||||
|
path = path.encode(sys.getfilesystemencoding())
|
||||||
anki.utils.call(["explorer", path], wait=False)
|
anki.utils.call(["explorer", path], wait=False)
|
||||||
else:
|
else:
|
||||||
QDesktopServices.openUrl(QUrl("file://" + path))
|
QDesktopServices.openUrl(QUrl("file://" + path))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue