OK one more
Code:
from calibre.utils.config import prefs; from calibre.library.database2 import LibraryDatabase2; p = r'C:\Documents and Settings\HF\library';prefs['library_path']=p; LibraryDatabase2(p)
Change C:\Documents and Settings\HF\library to whereever you want your library to be.