View Single Post
Old 01-30-2009, 06:23 AM   #40
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by Nate the great View Post
Here you go:
Try this, the command needs to be quoted after the -c.
Code:
calibre-debug -c "import wmi; from calibre.devices.kindle.driver import KINDLE; k = KINDLE(); print [(str(drive.PNPDeviceID), k.windows_get_drive_prefix(drive)) for drive in wmi.WMI().Win32_DiskDrive()]; k.open_windows(); print k._main_prefix"
user_none is offline   Reply With Quote