Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-07-2020, 02:46 AM   #1
cuser
Member
cuser began at the beginning.
 
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()
cuser is offline   Reply With Quote
Old 10-07-2020, 04:11 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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
kovidgoyal is online now   Reply With Quote
Advert
Old 10-07-2020, 04:13 AM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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?
kovidgoyal is online now   Reply With Quote
Old 10-07-2020, 08:01 AM   #4
cuser
Member
cuser began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Oct 2020
Device: kindle
Quote:
Originally Posted by kovidgoyal View Post
And might I ask why you want to make that change?
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).
cuser is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 11:08 AM.


MobileRead.com is a privately owned, operated and funded community.