]> git.phdru.name Git - m_librarian.git/blobdiff - m_librarian/download.py
Refactor(web): Get download destination path from config
[m_librarian.git] / m_librarian / download.py
index 281efcaf7a2c81b4f32013da206b71c314ea2f74..c0bc1010ca51365b50909fa14b3b7b92b3b387be 100755 (executable)
@@ -71,6 +71,8 @@ _library_path = None
 
 
 def download(book, dest_path=None, lib_path=None, a_format=None):
+    if dest_path is None:
+        dest_path = get_config().getpath('download', 'path')
     if lib_path is None:
         global _library_path
         if _library_path is None: