View Single Post
Old 03-17-2023, 10:07 PM   #1
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 781
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Sage
Absolute Beginner: Import Calibre Source for Plugin Use?

I'm an absolute beginner to all aspects of editing an existing plugin in Calibre. So, I'm not even smart enough to search for an answer. I'm trying to look at an existing Calibre plugin in an IDE (VS Code). Looking at even the _init_.py module, I see that the IDE can't resolve the very first "from" line:
Code:
# The class that all Interface Action plugin wrappers must inherit from
from calibre.customize import InterfaceActionBase
Quote:
Import "calibre.customize" could not be resolved
Does that mean I have to grab the Calibre source as described:
https://manual.calibre-ebook.com/dev...tting-the-code
and then set up a Windows development environment:
https://manual.calibre-ebook.com/dev...nt-environment
?

Or, is that just for modifying Calibre, itself?

If I do have to grab that source code, do I need to worry about my regular use of Calibre?
enuddleyarbl is offline   Reply With Quote