View Single Post
Old 06-29-2011, 04:36 PM   #6
Halo
Connoisseur
Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.
 
Halo's Avatar
 
Posts: 96
Karma: 72130
Join Date: Nov 2008
Location: San Francisco Bay Area, CA, USA
Device: Sony PRS-505, Kindle DX 1st Gen, Kindle Fire 1st Gen
Quote:
Originally Posted by kovidgoyal View Post
If you want a separate "dev" calibre and normal calibre, write a .bat file that launches the dev calibre like this

set CALIBRE_DEVELOP_FROM=whatever
calibre --with-library c:\path\to\test\library

Another bat file for normal calibre

calibre --with-library c:\path\to\normal\library
I tried this but it doesn't appear to be executing the right code. I edited src\calibre\__init__.py and added print "Hello, world!" near the top. I ran the following from the command line:

Code:
C:\Users\owner>set CALIBRE_DEVELOP_FROM=c:\cygwin\home\owner\calibre
C:\Users\owner>echo %CALIBRE_DEVELOP_FROM%
c:\cygwin\home\owner\calibre

C:\Users\owner>calibre --with-library "C:\Users\owner\Calibre Test"

C:\Users\owner>
I didn't see the statement print. I think it's still using the calibre executable that I installed:
Quote:
C:\Users\owner>where calibre
C:\Program Files (x86)\Calibre2\calibre.exe
Just to set expectations, I don't know anything about Python so I'd appreciate if it you are very explicit about what I need to type. I think the section in the user's guide about setting up a development environment assumes a lot of things that I don't know.
Halo is offline   Reply With Quote