Importing at runtime

David Poundall david at jotax.com
Tue Oct 25 00:53:14 EDT 2005


I have several .py files in a directory that I would like to import at
run time.  Each file contains a state machine that requires to be run
in its own thread.

The first problem I have is how can I import the code in all of the .py
files without knowing the file names in advance.

Can this be done ??

TIA




More information about the Python-list mailing list