From 0fd842dd9a3cc37d1622c857e03a19d8d8587b66 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 3 Sep 2013 11:06:53 +0530 Subject: [PATCH] Expand ~ in content-server --with-library --- src/calibre/library/server/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/library/server/main.py b/src/calibre/library/server/main.py index d38960da67..78420e1534 100644 --- a/src/calibre/library/server/main.py +++ b/src/calibre/library/server/main.py @@ -116,7 +116,7 @@ def main(args=sys.argv): print('No saved library path. Use the --with-library option' ' to specify the path to the library you want to use.') return 1 - db = LibraryDatabase(opts.with_library) + db = LibraryDatabase(os.path.expanduser(opts.with_library)) server = LibraryServer(db, opts, show_tracebacks=opts.develop) server.start() return 0