catalogues = (
# (code, ssCode, catalogue, formatOut, formatIN)
+ ('MAP','s_Perfect_V1',os.path.join(rep_cata,'s_Perfect_V1.py'),'s_Perfect','MAP'),
('MAP','s_polymers_st_1_V1',os.path.join(rep_cata,'s_polymers_st_1_V1.py'),'s_polymers_st_1','MAP'),
('MAP','s_scc_st_2_V1',os.path.join(rep_cata,'s_scc_st_2_V1.py'),'s_scc_st_2','MAP'),
('MAP','s_scc_st_2_V1',os.path.join(rep_cata,'s_scc_st_2_V1.py'),'s_scc_pn','MAP'),
('MAP','s_rpv2_V0',os.path.join(rep_cata,'s_rpv2_V0.py'),'s_rpv2','MAP'),
- ('MAP','s_DIC_V1',os.path.join(rep_cata,'s_DIC_V1.py'),'s_DIC','MAP'),
- ('MAP','s_scc_3d',os.path.join(rep_cata,'s_scc_3d_analysis.py'),'s_DIC','MAP'),
+ ('MAP','V0',os.path.join(rep_cata,'s_DIC_V1.py'),'s_DIC','MAP'),
+ ('MAP','V1',os.path.join(rep_cata,'s_DIC_V1.py'),'s_DIC','MAP'),
+ ('MAP','s_scc_3d',os.path.join(rep_cata,'s_scc_3d_analysis_V1.py'),'s_DIC','MAP'),
('MAP','c_transverse_empty_python_V1',os.path.join(MAP_DIRECTORY,'components/transverse/c_transverse_empty_python/deploy/c_transverse_empty_python_eficas.py'),'c_transverse_empty_python','MAP'),
- ('MAP','c_transverse_empty_c_V1',os.path.join(MAP_DIRECTORY,'components/transverse/c_transverse_empty_c/deploy/c_transverse_empty_c_eficas.py'),'c_transverse_empty_c','MAP'),
)
# ======================================================================
"""
- Ce module sert à lancer EFICAS configuré pour Perfect
+ Ce module sert a lancer EFICAS configure pour Code_Aster
"""
# Modules Python
-import sys,os
-sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)),'..'))
-
-from PyQt4.QtGui import *
-
# Modules Eficas
import prefs
name='prefs_'+prefs.code
__import__(name)
-from InterfaceQT4 import eficas_go
-from InterfaceQT4 import monChoixMap
-from Editeur import import_code
-from Editeur import session
-
+import sys,os
+sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)),'..'))
-class ChoixCata:
- def __init__(self):
- self.schema=""
- self.module=""
- self.nom=""
-
-options=session.parse(sys.argv)
-cata=options.cata
-MonChoixCata=ChoixCata()
-if cata == None :
- app = QApplication(sys.argv)
- ChoixMap = monChoixMap.MonChoixMap(MonChoixCata)
- ChoixMap.show()
- res=app.exec_()
-else :
- import re
- p=re.compile('_V\d+')
- if p.search(cata) == None :
- print "Ce Catalogue ne convient pas"
- exit(1)
- MonChoixCata.nom=cata[0: p.search(cata).start()]
-print prefs.code
-print MonChoixCata.nom
-eficas_go.lance_eficas(code=prefs.code,ssCode=MonChoixCata.nom)
+import prefs
+from InterfaceQT4 import eficas_go
+eficas_go.lance_eficas(code=prefs.code)