Update of /cvsroot/modeling/ProjectModeling/Modeling/ModelMasons/Python_bricks
In directory sc8-pr-cvs1:/tmp/cvs-serv12073/Modeling/ModelMasons/Python_bricks
Modified Files:
init.tmpl
Log Message:
Fixed template that cheetah couldn't correctly compile
Index: init.tmpl
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/ModelMasons/Python_bricks/init.tmpl,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** init.tmpl 7 Jul 2003 14:57:14 -0000 1.7
--- init.tmpl 9 Jul 2003 11:40:33 -0000 1.8
***************
*** 8,16 ****
import os
mydir = os.path.abspath(os.path.dirname(__file__))
! model=Model.searchModel('$(model_name)', mydir, verbose=0)
if not model:
import warnings
! warnings.warn("Couldn't load model '$(model_name)'")
else:
ModelSet.defaultModelSet().addModel(model)
--- 8,16 ----
import os
mydir = os.path.abspath(os.path.dirname(__file__))
! model=Model.searchModel("$(model_name)", mydir, verbose=0)
if not model:
import warnings
! warnings.warn("Couldn't load model $(model_name)")
else:
ModelSet.defaultModelSet().addModel(model)
|