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
|
plugin_path = sys.extensions_location
|
||||||
sys.path.insert(0, plugin_path)
|
sys.path.insert(0, plugin_path)
|
||||||
|
|
||||||
for plugin in ['pictureflow', 'lzx', 'msdes', 'podofo', 'cPalmdoc',
|
for plugin in [
|
||||||
'fontconfig', 'pdfreflow', 'progress_indicator', 'chmlib',
|
'pictureflow',
|
||||||
'chm_extra'] + \
|
'lzx',
|
||||||
|
'msdes',
|
||||||
|
'podofo',
|
||||||
|
'cPalmdoc',
|
||||||
|
'fontconfig',
|
||||||
|
'pdfreflow',
|
||||||
|
'progress_indicator',
|
||||||
|
'chmlib',
|
||||||
|
'chm_extra'
|
||||||
|
] + \
|
||||||
(['winutil'] if iswindows else []) + \
|
(['winutil'] if iswindows else []) + \
|
||||||
(['usbobserver'] if isosx else []):
|
(['usbobserver'] if isosx else []):
|
||||||
try:
|
try:
|
||||||
|
@ -1379,5 +1379,5 @@ void PictureFlow::dataChanged() { d->dataChanged(); }
|
|||||||
void PictureFlow::emitcurrentChanged(int index) { emit currentChanged(index); }
|
void PictureFlow::emitcurrentChanged(int index) { emit currentChanged(index); }
|
||||||
|
|
||||||
int FlowImages::count() { return 0; }
|
int FlowImages::count() { return 0; }
|
||||||
QImage FlowImages::image(int index) { return QImage(); }
|
QImage FlowImages::image(int index) { index=0; return QImage(); }
|
||||||
QString FlowImages::caption(int index) {return QString(); }
|
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
|
from calibre.constants import iswindows, preferred_encoding, plugins
|
||||||
|
|
||||||
_run_once = False
|
_run_once = False
|
||||||
|
winutil = winutilerror = None
|
||||||
|
|
||||||
if not _run_once:
|
if not _run_once:
|
||||||
_run_once = True
|
_run_once = True
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Platform specific modules
|
# Platform specific modules
|
||||||
winutil = winutilerror = None
|
|
||||||
if iswindows:
|
if iswindows:
|
||||||
winutil, winutilerror = plugins['winutil']
|
winutil, winutilerror = plugins['winutil']
|
||||||
if not winutil:
|
if not winutil:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user