Dynamically loading modules in Python (+ threading question)
- by morpheous
I am writing a Python package which reads the list of modules (along with ancillary data) from a configuration file.
I then want to iterate through each of the dynamically loaded modules and invoke a do_work() function in it which will spawn a new thread, so that the code runs in a separate thread.
At the moment, I am importing the list of all…