mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-27 01:24:28 +01:00
Allow using .py config files in both PyQT4 and PyQt5
This commit is contained in:
parent
bc070de564
commit
587d7864dd
1 changed files with 1 additions and 0 deletions
|
|
@ -193,6 +193,7 @@ def parse_string(self, src):
|
|||
try:
|
||||
if not isinstance(src, unicode):
|
||||
src = src.decode('utf-8')
|
||||
src = src.replace(u'PyQt5.QtCore', u'PyQt4.QtCore')
|
||||
exec src in options
|
||||
except:
|
||||
print 'Failed to parse options string:'
|
||||
|
|
|
|||
Loading…
Reference in a new issue