View Single Post
Old 10-16-2008, 08:53 AM   #4
jedavis1
Zealot
jedavis1 doesn't litterjedavis1 doesn't litter
 
jedavis1's Avatar
 
Posts: 103
Karma: 148
Join Date: Aug 2008
Location: Huntington, IN US
Device: Sony PRS-505
It would be esiest to do it with a simple .bat file (assuming you are on windows) but in Linux it would be similar. It would look something like this:

Find and modify the global.py to reflect the path to library 1 and save it as "global.lib1" and then change it to reflect the path to library 2 and save it as "global.lib2"

Copy and paste this into notepad and save it as "Library2.bat"

rem Change global.py for library 2 and launch Calibre
copy "c:\file path\global.lib2" "c:\file path\global.py" /y
"C:\Program Files\calibre\calibre.exe"

Copy and paste this into notepad and save it as "Library1.bat"

rem Change global.py for library 1 and launch Calibre
copy "c:\file path\global.lib1" "c:\file path\global.py" /y
"C:\Program Files\calibre\calibre.exe"
jedavis1 is offline   Reply With Quote