Salome HOME
PN bug notation scientifique
[tools/eficas.git] / Editeur / readercata.py
index 0a0db7cbcf4c71eeb0ce602395c655e8c6a2b58d..2676d25f8b01a28aea6413832c1b57bc8200daa1 100644 (file)
@@ -103,14 +103,14 @@ class READERCATA:
       self.fic_cata_c = self.fic_cata + 'c'
       self.fic_cata_p = os.path.splitext(self.fic_cata)[0]+'_pickled.py'
 
-      if self.appli.test == 0 :
-         splash._splash.configure(text = "Debut compil cata: %d s" % time.clock())
+      #if self.appli.test == 0 :
+      #   splash._splash.configure(text = "Debut compil cata: %d s" % time.clock())
       # compilation éventuelle du catalogue
-      test = self.compile_cata(self.fic_cata,self.fic_cata_c)
-      self.update_barre()
-      if self.appli.test == 0 :
-         splash._splash.configure(text = "Fin compil cata: %d s" % time.clock())
-      if not test : showerror("Compilation catalogue","Impossible de compiler le catalogue %s" %self.fic_cata)
+      #test = self.compile_cata(self.fic_cata,self.fic_cata_c)
+      #self.update_barre()
+      #if self.appli.test == 0 :
+      #   splash._splash.configure(text = "Fin compil cata: %d s" % time.clock())
+      #if not test : showerror("Compilation catalogue","Impossible de compiler le catalogue %s" %self.fic_cata)
 
       # import du catalogue
       if self.appli.test == 0 :
@@ -178,8 +178,9 @@ class READERCATA:
       rep_cata = os.path.dirname(cata)
       sys.path[:0] = [rep_cata]
       try :
-          f,p,d = imp.find_module(nom_cata)
-          o = imp.load_module(nom_cata,f,p,d)
+          o=__import__(nom_cata)
+          #f,p,d = imp.find_module(nom_cata)
+          #o = imp.load_module(nom_cata,f,p,d)
           return o
       except Exception,e:
           traceback.print_exc()
@@ -192,7 +193,7 @@ class READERCATA:
           Pour chaque entité du catlogue on crée une liste de nom ordre_mc qui
           contient le nom des mots clés dans le bon ordre
       """ 
-      self.cata_ordonne_dico=autre_analyse_cata.analyse_catalogue(self.cata)
+      self.cata_ordonne_dico,self.appli.liste_simp_reel=autre_analyse_cata.analyse_catalogue(self.cata)
 
    def Retrouve_Ordre_Cata_Standard(self):
       """ 
@@ -244,7 +245,7 @@ class READERCATA:
       message="Chargement catalogue développeur présent dans :\n %s..." % self.appli.CONFIGURATION.path_cata_dev
       if self.appli.test == 0 :
          splash._splash.configure(text = message,barre='oui')
-      cata_dev_ordonne_dico = autre_analyse_cata.analyse_catalogue(self.cata_dev)
+      cata_dev_ordonne_dico,self.appli.liste_simp_reel=autre_analyse_cata.analyse_catalogue(self.cata)
       self.cata_ordonne_dico.update(cata_dev_ordonne_dico)
       self.appli.affiche_infos(" catalogue(s) développeur(s) chargé(s)" )