mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04: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:
|
||||
path = self.pluginsFolder()
|
||||
if sys.platform == "win32":
|
||||
if isinstance(path, unicode):
|
||||
path = path.encode(sys.getfilesystemencoding())
|
||||
anki.utils.call(["explorer", path], wait=False)
|
||||
else:
|
||||
QDesktopServices.openUrl(QUrl("file://" + path))
|
||||
|
|
Loading…
Reference in a new issue