View Single Post
Old 06-06-2022, 09:43 PM   #1
calibrejunkie
Page Junkie Dev
calibrejunkie got an A in P-Chem.calibrejunkie got an A in P-Chem.calibrejunkie got an A in P-Chem.calibrejunkie got an A in P-Chem.calibrejunkie got an A in P-Chem.calibrejunkie got an A in P-Chem.calibrejunkie got an A in P-Chem.calibrejunkie got an A in P-Chem.calibrejunkie got an A in P-Chem.calibrejunkie got an A in P-Chem.calibrejunkie got an A in P-Chem.
 
calibrejunkie's Avatar
 
Posts: 37
Karma: 6280
Join Date: Jul 2018
Location: Earth
Device: Android Phone, Kindle, Surface Pro 3
Question Where does calibre store the library paths for the currently loaded library?

Hello,

Could someone please tell me how to get the currently selected/loaded Library path from calibre from inside a plugin using python?

For example, if the currently loaded library is at "c:\myLibraryPath", how do I get that information?

I assume there must be an API call for it, but I am not having any luck finding it in the API documentation.

I did see a call for getting a book's path, format_abspath(book_id, fmt), so I guess I could pull a random book and cut off the book part of the path? But seems like there would probably be a direct reference to the current library path?

Thank you for your time!
calibrejunkie is offline   Reply With Quote