From b0f925b9882a623fa77f2e10e163df650c3f82c2 Mon Sep 17 00:00:00 2001 From: Pascale Noyret Date: Thu, 25 Oct 2007 13:58:30 +0000 Subject: [PATCH] *** empty log message *** --- InterfaceQT/qtEficas.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.2