View Single Post
Old 12-11-2020, 12:15 PM   #1
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
calibre.utils.ipc RC Removed in 5.7? Replacement?

Code:
from calibre.utils.ipc import RC 

...
...


t = RC(print_error=False, socket_address=self.gui_socket_address) 
t.start()  
t.join(3)
if t.done:
msg = 'refreshdb:   '
t.conn.send(msg)
t.conn.close()
My MFI Media File Importer plugin has used RC() for years to properly "notify" the GUI that it should be refreshed so that newly added books will appear in the GUI without having to restart Calibre.

In Calibre 5.7, MFI fails at Calibre startup because RC no longer exists to be imported from calibre.utils.ipc .

Would there be a replacement for RC that can be used to perform the identical function in Calibre 5.7?



Thanks.


DaltonST
DaltonST is offline   Reply With Quote