Update of /cvsroot/modeling/ProjectModeling/Modeling
In directory sc8-pr-cvs1:/tmp/cvs-serv17712
Modified Files:
Model.py
Log Message:
Fixed: loadModel() shouldn't raise when MDL_DB_CONNECTIONS_CFG is equal to the empty string
Index: Model.py
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/Model.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** Model.py 3 Aug 2003 12:56:10 -0000 1.12
--- Model.py 9 Aug 2003 15:08:40 -0000 1.13
***************
*** 88,92 ****
if cfg_path is None:
cfg_path=os.environ.get('MDL_DB_CONNECTIONS_CFG')
! if cfg_path is None:
return
--- 88,92 ----
if cfg_path is None:
cfg_path=os.environ.get('MDL_DB_CONNECTIONS_CFG')
! if not cfg_path:
return
|