![]() |
#1 |
Member
![]() Posts: 18
Karma: 10
Join Date: Oct 2020
Device: kindle
|
Calibre 5.2.0 how to Modify or compile python-lib.bypy.frozen
Calibre 5.2.0 how to Modify or compile python-lib.bypy.frozen.
this can modify the pylib.zip file before. I want to modify in filenames.py: def delete_originals(self): import win32file for path in self.handle_map: #win32file.DeleteFileW(path) os.remove(path) self.close_handles() |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,153
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You cant modify it. If you want to run calibre from source, follow the instructions here: https://manual.calibre-ebook.com/develop.html
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,153
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
And might I ask why you want to make that change?
|
![]() |
![]() |
![]() |
#4 |
Member
![]() Posts: 18
Karma: 10
Join Date: Oct 2020
Device: kindle
|
When adding a book to the Calibre library, the book name will be converted to English characters.
It is very inconvenient to search by book name in the future. So, need to modify backend.py and filenames.py. When there are non-English directories or files in the Calibre library, using win32file.DeleteFileW(path) to delete the file will cause the program to crash, and need to use it instead os.remove(path). |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
add books from calibre library or from kindle lib? | crane3 | Library Management | 1 | 10-24-2020 06:03 AM |
Calibre 1.11.0 Vitrual Lib-Names at Content Server | Divingduck | Calibre | 16 | 11-23-2013 11:28 AM |
Can not start recoll from calibre /opt/calibre/lib/libz.so.1: no version information | Satas | Development | 5 | 04-19-2013 11:22 PM |
Script: store calibre ebooks as symlinks to existing lib; advanced CLI import | dancal | Calibre | 0 | 12-10-2012 07:09 PM |
Calibre compile error | JeffElkins | Calibre | 6 | 10-24-2008 06:59 PM |