#
-__Id__="$Id: analyse_catalogue.py,v 1.7.4.1 2008-11-13 10:35:11 cchris Exp $"
-__version__="$Name: BR_dev_V1_15 $"
+__Id__="$Id: analyse_catalogue_initial.py,v 1.1.2.1 2009-07-03 08:55:41 pnoyret Exp $"
+__version__="$Name: $"
#
if __name__ == "__main__" :
- monCata="/home/noyret/Install_Eficas/EficasQT4/Openturns_StudyOpenTURNS_Cata_Study_V4.py"
+ monCata="/local/noyret/Install_Eficas/EficasQT4/Openturns_StudyOpenTURNS_Cata_Study_V4.py"
analyse_catalogue(monCata)
sous_menus={"ASTER" : {0:{"3D":"3D.comm"},1:{"poutre":"pou.comm"},2:{"salome":"salome.comm"},3:{"divers":"comm"}},
"OPENTURNS_STUDY" : {0:{"Anne":"Std.comm"}},
"OPENTURNS_WRAPPER" : {0:{"Anne":"wrapper_exemple.comm"}},
- "HOMARD" : {},
- "CUVE2DG" : {},
- 'SEP' : {},
- 'SIK' : {}
}
class listePatrons :
def __init__(self,code = "ASTER"):
repIni=os.path.dirname(os.path.abspath(__file__))
self.rep_patrons=repIni+"/Patrons/"+code
- self.sous_menu=sous_menus[code]
+ self.sous_menu={}
+ if code in sous_menus.keys() :
+ self.sous_menu=sous_menus[code]
self.code=code
self.liste={}
self.traite_liste()
def traite_liste(self):
+ if not (self.code in sous_menus.keys()) : return
if not (os.path.exists(self.rep_patrons)) : return
for file in os.listdir(self.rep_patrons):
for i in range(len(self.sous_menu)):