Thread
:
Import module for use in regex function?
View Single Post
12-24-2022, 10:13 PM
#
4
kovidgoyal
creator of calibre
Posts: 45,455
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
In the calibre function do
sys.path.append('whatever')
import your_module
do whatever you want with it
sys.path.remove('whatever')
kovidgoyal
View Public Profile
Visit kovidgoyal's homepage!
Find More Posts by kovidgoyal
Track Posts by kovidgoyal via RSS