mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 06:03:44 +02:00
...
This commit is contained in:
parent
87f89c3fb7
commit
532f906e87
1 changed files with 4 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue