mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
Merge pull request #1103 from abdnh/win-openfolder
Fix ResourceWarning in openFolder() on Windows
This commit is contained in:
commit
49e4dba0d1
1 changed files with 1 additions and 1 deletions
|
@ -688,7 +688,7 @@ def mungeQA(col: Collection, txt: str) -> str:
|
||||||
|
|
||||||
def openFolder(path: str) -> None:
|
def openFolder(path: str) -> None:
|
||||||
if isWin:
|
if isWin:
|
||||||
subprocess.Popen(["explorer", f"file://{path}"])
|
subprocess.run(["explorer", f"file://{path}"], check=False)
|
||||||
else:
|
else:
|
||||||
with noBundledLibs():
|
with noBundledLibs():
|
||||||
QDesktopServices.openUrl(QUrl(f"file://{path}"))
|
QDesktopServices.openUrl(QUrl(f"file://{path}"))
|
||||||
|
|
Loading…
Reference in a new issue