View Single Post
Old 05-09-2011, 05:20 PM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,881
Karma: 6120478
Join Date: Nov 2009
Device: many
Hi,

Just in case anyone else is interested in this question: based on trial and error with my own plugin and Calibre 0.8.0, it seems I misunderstood how use of import had changed in the new plugins setup. With recent calibre versions I can now use "import" anyplace (even for other files from the plugin zip) in __init.py__. So I no longer need to restrict the imports to be within the run method.

That is a very nice improvement indeed.

KevinH
KevinH is offline   Reply With Quote