mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
87f89c3fb7
commit
532f906e87
@ -111,6 +111,10 @@ def main(args=sys.argv):
|
|||||||
from calibre.utils.config import prefs
|
from calibre.utils.config import prefs
|
||||||
if opts.with_library is None:
|
if opts.with_library is None:
|
||||||
opts.with_library = prefs['library_path']
|
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)
|
db = LibraryDatabase2(opts.with_library)
|
||||||
server = LibraryServer(db, opts, show_tracebacks=opts.develop)
|
server = LibraryServer(db, opts, show_tracebacks=opts.develop)
|
||||||
server.start()
|
server.start()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user