from builtins import str
except : pass
-from PyQt5.QtWidgets import QApplication
import sys,os
repIni=os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)),".."))
Lance l'appli EFICAS
"""
# Analyse des arguments de la ligne de commande
+ try :
+ from PyQt5.QtWidgets import QApplication
+ except :
+ print('Please, set qt environment')
+ return
+
from Editeur import session
options=session.parse(sys.argv)
if options.code!= None : code=options.code
import os\r
\r
\r
-class CONFIG(configuration.CONFIG_BASE):\r
+class CONFIG(configuration.configBase):\r
\r
#-----------------------------------\r
def __init__(self,appli,repIni):\r
self.labels_user=['catalogues','lang']\r
self.labels_eficas=['lang','rep_cata','catalogues']\r
\r
- configuration.CONFIG_BASE.__init__(self,appli,repIni)\r
+ configuration.configBase.__init__(self,appli,repIni)\r
\r
\r
def make_config(appli,rep):\r
"""
# Modules Python
# Modules Eficas
+import sys
import prefs
name='prefs_'+prefs.code
__import__(name)
-import sys
-reload(sys)
-sys.setdefaultencoding('latin1')
import os
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)),'..'))
import prefs
from InterfaceQT4 import eficas_go
-eficas_go.lance_eficas(code=prefs.code)
+eficas_go.lanceEficas(code=prefs.code)