View Single Post
Old 01-26-2009, 02:16 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,410
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
OK now try the following

Code:
calibre-debug -c "from calibre.devices.scanner import DeviceScanner; s = DeviceScanner(); s.scan(); print s.devices"


calibre-debug -c "from calibre.devices.scanner import DeviceScanner; from calibre.devices.prs505.driver import PRS505; s = DeviceScanner(); s.scan(); print s.is_device_connected(PRS505);"
kovidgoyal is online now   Reply With Quote