X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2Fsalome_hydro%2Ftelemac2d%2Feficas%2Fappli.py;h=69b982f8b697fbccd6504bda7861d06bb918cf0a;hb=dc01f4844947809767f04ad2f305fd06b452c010;hp=834af0065b4d93ecd9785fa2be6c7f3ae68b738c;hpb=1442b0bc3706087bd23d06fa2dddf3bbbd0ca20f;p=modules%2Fhydrosolver.git diff --git a/src/salome_hydro/telemac2d/eficas/appli.py b/src/salome_hydro/telemac2d/eficas/appli.py index 834af00..69b982f 100644 --- a/src/salome_hydro/telemac2d/eficas/appli.py +++ b/src/salome_hydro/telemac2d/eficas/appli.py @@ -37,6 +37,18 @@ import eficasSalome from salome.hydro.study import HydroStudyEditor +def importFirst(): + """ + Horrible hack to allow a correct load of a Telemac case file when done after + some other edition, such as create case for Pytel execution. + """ + eficasTelemacPath = os.path.join(eficasSalome.eficasConfig.eficasPath,'Telemac') + sys.path.insert(0, eficasTelemacPath) + from enum_Telemac2d_auto import TelemacdicoEn + sys.path.pop(0) + +importFirst() + class EficasForTelemac2DAppli(eficasSalome.MyEficas): """ This class launches Eficas and adds entries for the created files in