mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
fix opening of explorer folders on windows
This commit is contained in:
parent
b56ca60d2f
commit
9c04ac6a8e
1 changed files with 1 additions and 1 deletions
|
@ -345,7 +345,7 @@ def getBase(col):
|
||||||
|
|
||||||
def openFolder(path):
|
def openFolder(path):
|
||||||
if isWin:
|
if isWin:
|
||||||
subprocess.Popen(["explorer", path])
|
subprocess.Popen(["explorer", "file://"+path])
|
||||||
else:
|
else:
|
||||||
oldlpath = os.environ.pop("LD_LIBRARY_PATH", None)
|
oldlpath = os.environ.pop("LD_LIBRARY_PATH", None)
|
||||||
QDesktopServices.openUrl(QUrl("file://" + path))
|
QDesktopServices.openUrl(QUrl("file://" + path))
|
||||||
|
|
Loading…
Reference in a new issue