mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -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:
|
||||
subprocess.Popen(["explorer", path])
|
||||
else:
|
||||
oldlpath = os.environ.get("LD_LIBRARY_PATH")
|
||||
del os.environ["LD_LIBRARY_PATH"]
|
||||
oldlpath = os.environ.pop("LD_LIBRARY_PATH", None)
|
||||
QDesktopServices.openUrl(QUrl("file://" + path))
|
||||
if oldlpath:
|
||||
os.environ["LD_LIBRARY_PATH"] = oldlpath
|
||||
|
|
Loading…
Reference in a new issue