Quote:
Originally Posted by kbanelas
Seriously, I have wrote a Python script but Sigil say: Error, plugin not a valid sigil plugin.
I have compared with another plugin and I don't know what happens, because my plugin is a zip with 3 files (.sh,.bat and .py) and everything looks like correct.
|
Did you look at Calibre plugins by any chance? Sigil plugins don't use shell scripts or batch files. However, each of them must contain at least two files:
plugin.py (contains the code)
plugin.xml (contains the description)
I've attached a very simple proof-of-concept plugin that only displays 'Hello World'. If it doesn't work on your machine, you're most likely using a custom Linux build or accidentally moved or deleted the Plugin Runner Python files.
Quote:
Originally Posted by kbanelas
After I have proved the reference plugin and oops!! it also doesn't work... but I'm sure it worked because I have read more plugins with the same structure.
How can I know the right structure for my plugin?
|
The plugin structure is explained in the
Plugin Framework Guide.