what's the general way of separating classes?

Ido Yehieli Ido.Yehieli at gmail.com
Mon Mar 20 17:21:18 EST 2006


or you can write the (slightly dangerous) following:

import os
for file in os.listdir("/path/to/modules"):
    if file.endswith(".py"):
        exec("from "+file[:-3]+" import *")




More information about the Python-list mailing list