Thread
:
Using image in plugin code
View Single Post
03-11-2014, 10:56 PM
#
8
kovidgoyal
creator of calibre
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
So either define version outside the class like this
version = xxx
class MyClass:
version = version
or import the class
from calibre_plugins.plugin_name import MyClass
version = MyClass.version
kovidgoyal
View Public Profile
Visit kovidgoyal's homepage!
Find More Posts by kovidgoyal
Track Posts by kovidgoyal via RSS