<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://wiki.opentelemac.org/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://wiki.opentelemac.org/feed.php">
        <title>open TELEMAC-MASCARET scripts:python:parsers</title>
        <description></description>
        <link>http://wiki.opentelemac.org/</link>
        <image rdf:resource="http://wiki.opentelemac.org/lib/tpl/opentelemac/images/favicon.ico" />
       <dc:date>2026-04-11T17:38:01+01:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://wiki.opentelemac.org/doku.php?id=scripts:python:parsers:parserxml&amp;rev=1412953323&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://wiki.opentelemac.org/lib/tpl/opentelemac/images/favicon.ico">
        <title>open TELEMAC-MASCARET</title>
        <link>http://wiki.opentelemac.org/</link>
        <url>http://wiki.opentelemac.org/lib/tpl/opentelemac/images/favicon.ico</url>
    </image>
    <item rdf:about="http://wiki.opentelemac.org/doku.php?id=scripts:python:parsers:parserxml&amp;rev=1412953323&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-10-10T16:02:03+01:00</dc:date>
        <title>scripts:python:parsers:parserxml</title>
        <link>http://wiki.opentelemac.org/doku.php?id=scripts:python:parsers:parserxml&amp;rev=1412953323&amp;do=diff</link>
        <description>Specific TELEMAC Toolbox

Global dictionnaries to avoid having to read these more than once.

The keys are the full path to the dictionnaries and therefore allows for root and version to change





def getDICO(cfg,code):

   dicoFile = path.join(cfg['MODULES'][code]['path'],code+'.dico')
   if dicoFile not in DICOS.keys():
      print '    +&gt; register this DICO file: ' + dicoFile
      frgb,dico = scanDICO(dicoFile)
      idico,odico = getIOFilesSubmit(frgb,dico)
      globals()['DICOS'].update…</description>
    </item>
</rdf:RDF>
