From: Pascale Noyret Date: Thu, 25 Oct 2007 13:58:30 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: V1_13b1~41 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b0f925b9882a623fa77f2e10e163df650c3f82c2;p=tools%2Feficas.git *** empty log message *** --- diff --git a/InterfaceQT/qtEficas.py b/InterfaceQT/qtEficas.py index a6d03abe..149b166f 100644 --- a/InterfaceQT/qtEficas.py +++ b/InterfaceQT/qtEficas.py @@ -5,6 +5,7 @@ REPINI=os.path.dirname(os.path.abspath(__file__)) INSTALLDIR=os.path.join(REPINI,'..') sys.path.append(INSTALLDIR) sys.path.append(INSTALLDIR+"/Ui") +sys.path.append(INSTALLDIR+"/InterfaceQT") from qt import * from myMain_ui import Eficas @@ -16,7 +17,6 @@ from Editeur import session from InterfaceQT import utilIcons utilIcons.initializeMimeSourceFactory() -import prefs class Appli(Eficas): """ @@ -31,6 +31,9 @@ class Appli(Eficas): """ Eficas.__init__(self) + if code == "ASTER" : + from Aster import prefs + sys.path.append(INSTALLDIR+"/Aster") self.top=self self.CONFIGURATION = configuration.make_config(self,prefs.REPINI) self.CONFIGStyle = configuration.make_config_style(self,prefs.REPINI) @@ -186,6 +189,7 @@ class Appli(Eficas): if __name__=='__main__': # Modules Eficas + sys.path.append(INSTALLDIR+"/Aster") import prefs if hasattr(prefs,'encoding'): # Hack pour changer le codage par defaut des strings