mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
66162850ca
commit
ab195723c8
@ -56,9 +56,18 @@ if plugins is None:
|
||||
plugin_path = sys.extensions_location
|
||||
sys.path.insert(0, plugin_path)
|
||||
|
||||
for plugin in ['pictureflow', 'lzx', 'msdes', 'podofo', 'cPalmdoc',
|
||||
'fontconfig', 'pdfreflow', 'progress_indicator', 'chmlib',
|
||||
'chm_extra'] + \
|
||||
for plugin in [
|
||||
'pictureflow',
|
||||
'lzx',
|
||||
'msdes',
|
||||
'podofo',
|
||||
'cPalmdoc',
|
||||
'fontconfig',
|
||||
'pdfreflow',
|
||||
'progress_indicator',
|
||||
'chmlib',
|
||||
'chm_extra'
|
||||
] + \
|
||||
(['winutil'] if iswindows else []) + \
|
||||
(['usbobserver'] if isosx else []):
|
||||
try:
|
||||
|
@ -1379,5 +1379,5 @@ void PictureFlow::dataChanged() { d->dataChanged(); }
|
||||
void PictureFlow::emitcurrentChanged(int index) { emit currentChanged(index); }
|
||||
|
||||
int FlowImages::count() { return 0; }
|
||||
QImage FlowImages::image(int index) { return QImage(); }
|
||||
QString FlowImages::caption(int index) {return QString(); }
|
||||
QImage FlowImages::image(int index) { index=0; return QImage(); }
|
||||
QString FlowImages::caption(int index) {index=0; return QString(); }
|
||||
|
@ -19,12 +19,13 @@ __builtin__.__dict__['__'] = lambda s: s
|
||||
from calibre.constants import iswindows, preferred_encoding, plugins
|
||||
|
||||
_run_once = False
|
||||
winutil = winutilerror = None
|
||||
|
||||
if not _run_once:
|
||||
_run_once = True
|
||||
|
||||
################################################################################
|
||||
# Platform specific modules
|
||||
winutil = winutilerror = None
|
||||
if iswindows:
|
||||
winutil, winutilerror = plugins['winutil']
|
||||
if not winutil:
|
||||
|
Loading…
x
Reference in New Issue
Block a user