From 8a78de45c12040f176def27c10824c2d23abc9d1 Mon Sep 17 00:00:00 2001 From: mikem Date: Thu, 19 Jan 2012 05:00:16 +0900 Subject: [PATCH] fix for Open Addons Folder... failing on windows --- aqt/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aqt/utils.py b/aqt/utils.py index 11921a407..b765efbd3 100644 --- a/aqt/utils.py +++ b/aqt/utils.py @@ -2,7 +2,7 @@ # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html from aqt.qt import * -import re, os, sys, urllib, time +import re, os, sys, urllib, time, subprocess import aqt from anki.sound import playFromText, stripSounds from anki.utils import call, isWin, isMac @@ -329,7 +329,7 @@ def openFolder(path): if isWin: if isinstance(path, unicode): path = path.encode(sys.getfilesystemencoding()) - call(["explorer", path], wait=False) + subprocess.Popen(["explorer", path]) else: QDesktopServices.openUrl(QUrl("file://" + path))