Hmm looking at the DAL code I am talking above about a web2py use of dal.py. It looks like the code you normally put in the models directory can just be put in your program inline.
Maybe someone else that has used the dal stand-alone can comment better than me. I see a set_folder static method but am not sure if it can be used, the comments say it is possibly going to be deprecated when dal.py replaces sql.py which has happened since 1.90.X Ron