setdestroyonexit (#907)

This commit is contained in:
Damien Elmes 2013-09-04 03:15:35 +09:00
parent 31c42a4f75
commit 463fec1158

View File

@ -8,6 +8,11 @@ from anki.utils import isWin, isMac
sip.setapi('QString', 2)
sip.setapi('QVariant', 2)
sip.setapi('QUrl', 2)
try:
sip.setdestroyonexit(False)
except:
# missing in older versions
pass
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4.QtWebKit import QWebPage, QWebView, QWebSettings