Quote:
Originally Posted by kovidgoyal
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.