2 # -*- coding: utf-8 -*-
6 from os import path, listdir, system, chdir, environ, remove
7 from argparse import ArgumentParser
12 from execution.telemac_cas import TelemacCas, get_dico
14 # Adding Eficas to PYTHONPATH
15 print(environ["EFICAS_NOUVEAU_ROOT"])
16 sys.path.append(environ["EFICAS_NOUVEAU_ROOT"])
19 except ImportError as excp:
20 print("Add the path to eficas to PYTHONPATH")
21 if hasattr(Telemac.prefs, 'encoding'):
22 # Hack pour changer le codage par defaut des strings
25 sys.setdefaultencoding(prefs.encoding)
26 del sys.setdefaultencoding
51 for module in PREFIX.values():
53 module_name = "{}_cata_auto".format(module)
54 print(" ~> Trying to import :", module_name)
55 _ = importlib.import_module(module_name)