This commit is contained in:
Kovid Goyal 2012-01-29 09:42:14 +05:30
parent 87f89c3fb7
commit 532f906e87

View File

@ -111,6 +111,10 @@ def main(args=sys.argv):
from calibre.utils.config import prefs
if opts.with_library is None:
opts.with_library = prefs['library_path']
if not opts.with_library:
print('No saved library path. Use the --with-library option'
' to specify the path to the library you want to use.')
return 1
db = LibraryDatabase2(opts.with_library)
server = LibraryServer(db, opts, show_tracebacks=opts.develop)
server.start()