View Single Post
Old 10-23-2014, 06:44 PM   #10
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,738
Karma: 24031403
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by kbanelas View Post
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 View Post
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.
Attached Files
File Type: zip hello.zip (794 Bytes, 111 views)
Doitsu is offline   Reply With Quote