View Single Post
Old 08-17-2014, 04:32 AM   #4
edward.81
Junior Member
edward.81 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2014
Device: Moonreader (android)
Quote:
Originally Posted by kovidgoyal View Post
You cannot inherit from a builtin driver class like that. The plugin loading system has no way to know which is the driver class, MTP_DEVICE or MSYNC

You need to inherit from the DevicePlugin class instead.

If you really want to inherit from MTP_DEVICE then create a driver.py file in your plugin and do it in that, then simply import MSYNC into __init__.py like this

from calibre_plugins.my_plugin_import_name.driver import MSYNC
Got it thanks !

Quote:
Originally Posted by kovidgoyal View Post
And this commit should allow your __init__.py to work as well

https://github.com/kovidgoyal/calibr...a9f681b2234426
Simply awesome !
edward.81 is offline   Reply With Quote