View Single Post
Old 03-01-2011, 03:07 PM   #1
Coleccionista
Connoisseur
Coleccionista began at the beginning.
 
Posts: 57
Karma: 40
Join Date: Aug 2010
Device: iPad, Kindle 3 Wi-Fi
Development documentation question (basic)

I've been trying to follow the instructions at:

http://calibre-ebook.com/user_manual/develop.html

But I cannot get the "Hello world!" sample to print out after running calibredb.
It just shows calibredb help message.

I've tried both in Linux and Windows, installed the calibre binary, download the source code with bzr, set the "CALIBRE_DEVELOP_FROM" variable to point to the "src" directory and modify the "src/calibre/__init__.py" with the print statement.

Code:
vmplanet@kubuntu:~/calibre/src/calibre$ echo $CALIBRE_DEVELOP_FROM 
/home/vmplanet/calibre/src
Code:
vmplanet@kubuntu:~/calibre/src/calibre$ calibredb
Uso: calibredb orden [opciones] [argumentos]

calibredb es la interfaz de línea de órdenes para la base de datos de libros de calibre.

orden es una de:

.....
Code:
vmplanet@kubuntu-vm:~/calibre/src/calibre$ grep -n Hello __init__.py 
24:print 'Hello world!'
Instructions look quite easy but I can't reproduce
Coleccionista is offline   Reply With Quote