View Single Post
Old 12-24-2022, 10:13 AM   #1
vr8ce
Enthusiast
vr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchfork
 
vr8ce's Avatar
 
Posts: 33
Karma: 48958
Join Date: May 2017
Device: iPad Pro 9.7"
Import module for use in regex function?

I have a (pip installable) python module I want to use in a Calibre regex function that does not exist in calibre's python environment. I therefore get an error when trying to save the function.

Is it possible to add external modules to calibre's python environment, not for development, but just for use in a custom regex function? IOW, I don't want to run calibre in development mode, I just want to be able to use a module that calibre doesn't have installed.

I've looked through the regex function portion of the manual, and done a bit of searching here, and have not found anything.
vr8ce is offline   Reply With Quote