import string
import StringIO
-logging.basicConfig(level=logging.INFO)
+logging.basicConfig(level=logging.WARNING)
#----------- Templates Part ---------------#
begin_catalog_file = """# -*- coding: utf-8 -*-
import os
import traceback
import logging
-logging.basicConfig(level=logging.INFO, format='%(levelname)-8s %(message)s')
+logging.basicConfig(level=logging.WARNING, format='%(levelname)-8s %(message)s')
-print "-- Starting AdaoYacsSchemaCreator --"
+logging.debug("-- Starting AdaoYacsSchemaCreator --")
# Check some basics variables
if "ADAO_ROOT_DIR" not in os.environ:
#
# Author: André Ribes, andre.ribes@edf.fr, EDF R&D
-print "import convert_adao"
+# print "import convert_adao"
import convert.parseur_python
from convert.convert_python import *
def writeDefault(self, fn):
if self.text_da_status:
- print "write adao python command file"
+ self.logger.debug("write adao python command file")
filename = fn[:fn.rfind(".")] + '.py'
f = open( str(filename), 'wb')
f.write( self.text_da )
encoding='iso-8859-1'
# lang indique la langue utilisee pour les chaines d'aide : fr ou ang
lang='fr'
-
-
-# INSTALLDIR sert a localiser l'installation d'Eficas
-#INSTALLDIR=os.path.join(REPINI,'..')
-
-
-
-# Acces a la documentation
-#rep_cata = INSTALLDIR
-#path_doc = os.path.join(rep_cata,'Doc')
-#exec_acrobat = "/usr/bin/xpdf"
-#savedir = os.environ['HOME']
-
-
-# OpenTURNS Python module
-#OpenTURNS_path="/local00/home/dutka/OpenTURNS/trunk-cmake/build-autotools/install/lib/python2.4/site-packages"
-# Choix des catalogues
-#sys.path[:0]=[INSTALLDIR, OpenTURNS_path]
-