01-21-2011, 01:23 PM | #1 |
Sigil developer
Posts: 1,275
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
Help with plugin writing
I'm playing around with writing a plugin (I can get a basic script to run) but I was wondering how I can get access to the name of the mount point used by my device once Calibre mounts it. i.e. what code do I need to return the string that gives say "/media/Kindle" which is where it mounts for me?
I probably need to spend a bit more time looking at other plugins, though I haven't seen any that do this - if you know of any or code in Calibre that gives an example I'd appreciate the pointer. Maybe I should start with something simpler |
01-21-2011, 01:31 PM | #2 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
self.gui.device_manager.connected_device._main_pre fix
|
Advert | |
|
01-21-2011, 01:57 PM | #3 |
Sigil developer
Posts: 1,275
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
Wow, was I offbase. Thanks! Too much reading of USBS device methods in the API and source...
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using a plugin | jrmckins | Plugins | 3 | 12-12-2010 11:48 AM |
Writing an interface action plugin | kiwidude | Plugins | 21 | 11-11-2010 04:11 PM |
New Plugin Type Idea: Library Plugin | cgranade | Plugins | 3 | 09-15-2010 12:11 PM |
plugin iRexDR800S | MarkNL | Plugins | 2 | 02-09-2010 03:51 AM |
Referencer plugin | IanHelgesen | iRex | 6 | 12-22-2008 09:24 PM |