mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Merge pull request #145 from marciomazza/fix_open_addon_folder
Fix open addon folder
This commit is contained in:
commit
3859d8706b
1 changed files with 1 additions and 2 deletions
|
@ -347,8 +347,7 @@ def openFolder(path):
|
||||||
if isWin:
|
if isWin:
|
||||||
subprocess.Popen(["explorer", path])
|
subprocess.Popen(["explorer", path])
|
||||||
else:
|
else:
|
||||||
oldlpath = os.environ.get("LD_LIBRARY_PATH")
|
oldlpath = os.environ.pop("LD_LIBRARY_PATH", None)
|
||||||
del os.environ["LD_LIBRARY_PATH"]
|
|
||||||
QDesktopServices.openUrl(QUrl("file://" + path))
|
QDesktopServices.openUrl(QUrl("file://" + path))
|
||||||
if oldlpath:
|
if oldlpath:
|
||||||
os.environ["LD_LIBRARY_PATH"] = oldlpath
|
os.environ["LD_LIBRARY_PATH"] = oldlpath
|
||||||
|
|
Loading…
Reference in a new issue