2 rep=("namespace ParaMEDMEM","namespace MEDCoupling")
3 rep=("ParaMEDMEM::","MEDCoupling::")
4 #rep=("ParaMEDMEMImpl::","MEDCouplingImpl::")
6 #rep=("_ParaMEDMEM__","_MEDCoupling__")
7 #rep=("ParaMEDMEM_","MEDCoupling_")
8 #rep=("ParaMEDMEMData","MEDCouplingData")
10 #rep=("ParaMEDMEM_1","MEDCoupling_1")
13 f=file(fi) ; lines=f.readlines() ; del f
14 lines2=[line.replace(*rep) for line in lines]
16 f=file(fi,"w") ; f.writelines(lines2) ; f.flush()
21 def rep1(dirname,rep):
23 for fi in os.listdir(dirname):
24 fi2=os.path.join(dirname,fi)
25 if not os.path.isfile(fi2):
30 dirs=["MEDCoupling","MEDCoupling/Test","MEDLoader","MEDLoader/Swig","MEDLoader/Test","MEDPartitioner","MEDPartitioner/Test","MEDPartitioner_Swig","RENUMBER","RENUMBER_Swig","INTERP_KERNELTest","ParaMEDMEM","ParaMEDLoader","ParaMEDMEMTest","ParaMEDMEM_Swig","doc/user/doxygen/fakesources","doc/user/doxygen/doxy2swig","doc/user/doxygen/doxfiles","/home/H87074/salome/DEV/modules/src/MED/src/MEDCouplingCorba","/home/H87074/salome/DEV/modules/src/MED/src/MEDCouplingCorba/Client","/home/H87074/salome/DEV/modules/src/MED/src/MEDCouplingCorba/Test","/home/H87074/salome/DEV/modules/src/MED/src/MEDCalc/cmp","/home/H87074/salome/DEV/modules/src/MED/src/MEDCalculator","/home/H87074/salome/DEV/modules/src/MED/src/MEDCalculator/Swig","/home/H87074/salome/DEV/modules/src/MED/src/MEDCalculator/Test","/home/H87074/salome/DEV/modules/src/PARAVIS/src/Plugins/MEDReader/IO"]
33 print(rep1(dirname,rep))
34 """for r,dirs,fis in os.walk(dirname):
36 if os.path.splitext(fi)[1] not in [".dox",".doxy"]:
38 i+=rep0(os.path.join(r,fi),rep)