2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5 <html xmlns="http://www.w3.org/1999/xhtml">
7 <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
8 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9 <title>src package — salomeTools 5.0.0dev documentation</title>
10 <link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
11 <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
12 <script type="text/javascript" src="../../_static/documentation_options.js"></script>
13 <script type="text/javascript" src="../../_static/jquery.js"></script>
14 <script type="text/javascript" src="../../_static/underscore.js"></script>
15 <script type="text/javascript" src="../../_static/doctools.js"></script>
16 <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
17 <link rel="index" title="Index" href="../../genindex.html" />
18 <link rel="search" title="Search" href="../../search.html" />
19 <link rel="next" title="src.colorama package" href="src.colorama.html" />
20 <link rel="prev" title="src" href="modules.html" />
22 <link rel="stylesheet" href="../../_static/custom.css" type="text/css" />
25 <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />
30 <div class="document">
31 <div class="documentwrapper">
32 <div class="bodywrapper">
33 <div class="body" role="main">
35 <div class="section" id="src-package">
36 <h1>src package<a class="headerlink" href="#src-package" title="Permalink to this headline">¶</a></h1>
37 <div class="section" id="subpackages">
38 <h2>Subpackages<a class="headerlink" href="#subpackages" title="Permalink to this headline">¶</a></h2>
39 <div class="toctree-wrapper compound">
41 <li class="toctree-l1"><a class="reference internal" href="src.colorama.html">src.colorama package</a><ul>
42 <li class="toctree-l2"><a class="reference internal" href="src.colorama.html#submodules">Submodules</a></li>
43 <li class="toctree-l2"><a class="reference internal" href="src.colorama.html#module-src.colorama.ansi">src.colorama.ansi module</a></li>
44 <li class="toctree-l2"><a class="reference internal" href="src.colorama.html#module-src.colorama.ansitowin32">src.colorama.ansitowin32 module</a></li>
45 <li class="toctree-l2"><a class="reference internal" href="src.colorama.html#module-src.colorama.initialise">src.colorama.initialise module</a></li>
46 <li class="toctree-l2"><a class="reference internal" href="src.colorama.html#module-src.colorama.win32">src.colorama.win32 module</a></li>
47 <li class="toctree-l2"><a class="reference internal" href="src.colorama.html#module-src.colorama.winterm">src.colorama.winterm module</a></li>
48 <li class="toctree-l2"><a class="reference internal" href="src.colorama.html#module-src.colorama">Module contents</a></li>
54 <div class="section" id="submodules">
55 <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this headline">¶</a></h2>
57 <div class="section" id="module-src.ElementTree">
58 <span id="src-elementtree-module"></span><h2>src.ElementTree module<a class="headerlink" href="#module-src.ElementTree" title="Permalink to this headline">¶</a></h2>
60 <dt id="src.ElementTree.Comment">
61 <code class="descclassname">src.ElementTree.</code><code class="descname">Comment</code><span class="sig-paren">(</span><em>text=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/ElementTree.html#Comment"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ElementTree.Comment" title="Permalink to this definition">¶</a></dt>
65 <dt id="src.ElementTree.dump">
66 <code class="descclassname">src.ElementTree.</code><code class="descname">dump</code><span class="sig-paren">(</span><em>elem</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/ElementTree.html#dump"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ElementTree.dump" title="Permalink to this definition">¶</a></dt>
70 <dt id="src.ElementTree.Element">
71 <code class="descclassname">src.ElementTree.</code><code class="descname">Element</code><span class="sig-paren">(</span><em>tag</em>, <em>attrib={}</em>, <em>**extra</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/ElementTree.html#Element"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ElementTree.Element" title="Permalink to this definition">¶</a></dt>
75 <dt id="src.ElementTree.ElementTree">
76 <em class="property">class </em><code class="descclassname">src.ElementTree.</code><code class="descname">ElementTree</code><span class="sig-paren">(</span><em>element=None</em>, <em>file=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/ElementTree.html#ElementTree"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ElementTree.ElementTree" title="Permalink to this definition">¶</a></dt>
77 <dd><dl class="method">
78 <dt id="src.ElementTree.ElementTree.find">
79 <code class="descname">find</code><span class="sig-paren">(</span><em>path</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/ElementTree.html#ElementTree.find"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ElementTree.ElementTree.find" title="Permalink to this definition">¶</a></dt>
83 <dt id="src.ElementTree.ElementTree.findall">
84 <code class="descname">findall</code><span class="sig-paren">(</span><em>path</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/ElementTree.html#ElementTree.findall"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ElementTree.ElementTree.findall" title="Permalink to this definition">¶</a></dt>
88 <dt id="src.ElementTree.ElementTree.findtext">
89 <code class="descname">findtext</code><span class="sig-paren">(</span><em>path</em>, <em>default=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/ElementTree.html#ElementTree.findtext"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ElementTree.ElementTree.findtext" title="Permalink to this definition">¶</a></dt>
93 <dt id="src.ElementTree.ElementTree.getiterator">
94 <code class="descname">getiterator</code><span class="sig-paren">(</span><em>tag=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/ElementTree.html#ElementTree.getiterator"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ElementTree.ElementTree.getiterator" title="Permalink to this definition">¶</a></dt>
98 <dt id="src.ElementTree.ElementTree.getroot">
99 <code class="descname">getroot</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/ElementTree.html#ElementTree.getroot"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ElementTree.ElementTree.getroot" title="Permalink to this definition">¶</a></dt>
103 <dt id="src.ElementTree.ElementTree.parse">
104 <code class="descname">parse</code><span class="sig-paren">(</span><em>source</em>, <em>parser=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/ElementTree.html#ElementTree.parse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ElementTree.ElementTree.parse" title="Permalink to this definition">¶</a></dt>
108 <dt id="src.ElementTree.ElementTree.write">
109 <code class="descname">write</code><span class="sig-paren">(</span><em>file</em>, <em>encoding='us-ascii'</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/ElementTree.html#ElementTree.write"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ElementTree.ElementTree.write" title="Permalink to this definition">¶</a></dt>
114 <dl class="function">
115 <dt id="src.ElementTree.fromstring">
116 <code class="descclassname">src.ElementTree.</code><code class="descname">fromstring</code><span class="sig-paren">(</span><em>text</em><span class="sig-paren">)</span><a class="headerlink" href="#src.ElementTree.fromstring" title="Permalink to this definition">¶</a></dt>
119 <dl class="function">
120 <dt id="src.ElementTree.iselement">
121 <code class="descclassname">src.ElementTree.</code><code class="descname">iselement</code><span class="sig-paren">(</span><em>element</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/ElementTree.html#iselement"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ElementTree.iselement" title="Permalink to this definition">¶</a></dt>
125 <dt id="src.ElementTree.iterparse">
126 <em class="property">class </em><code class="descclassname">src.ElementTree.</code><code class="descname">iterparse</code><span class="sig-paren">(</span><em>source</em>, <em>events=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/ElementTree.html#iterparse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ElementTree.iterparse" title="Permalink to this definition">¶</a></dt>
127 <dd><dl class="method">
128 <dt id="src.ElementTree.iterparse.next">
129 <code class="descname">next</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/ElementTree.html#iterparse.next"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ElementTree.iterparse.next" title="Permalink to this definition">¶</a></dt>
134 <dl class="function">
135 <dt id="src.ElementTree.parse">
136 <code class="descclassname">src.ElementTree.</code><code class="descname">parse</code><span class="sig-paren">(</span><em>source</em>, <em>parser=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/ElementTree.html#parse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ElementTree.parse" title="Permalink to this definition">¶</a></dt>
139 <dl class="function">
140 <dt id="src.ElementTree.PI">
141 <code class="descclassname">src.ElementTree.</code><code class="descname">PI</code><span class="sig-paren">(</span><em>target</em>, <em>text=None</em><span class="sig-paren">)</span><a class="headerlink" href="#src.ElementTree.PI" title="Permalink to this definition">¶</a></dt>
144 <dl class="function">
145 <dt id="src.ElementTree.ProcessingInstruction">
146 <code class="descclassname">src.ElementTree.</code><code class="descname">ProcessingInstruction</code><span class="sig-paren">(</span><em>target</em>, <em>text=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/ElementTree.html#ProcessingInstruction"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ElementTree.ProcessingInstruction" title="Permalink to this definition">¶</a></dt>
150 <dt id="src.ElementTree.QName">
151 <em class="property">class </em><code class="descclassname">src.ElementTree.</code><code class="descname">QName</code><span class="sig-paren">(</span><em>text_or_uri</em>, <em>tag=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/ElementTree.html#QName"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ElementTree.QName" title="Permalink to this definition">¶</a></dt>
154 <dl class="function">
155 <dt id="src.ElementTree.SubElement">
156 <code class="descclassname">src.ElementTree.</code><code class="descname">SubElement</code><span class="sig-paren">(</span><em>parent</em>, <em>tag</em>, <em>attrib={}</em>, <em>**extra</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/ElementTree.html#SubElement"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ElementTree.SubElement" title="Permalink to this definition">¶</a></dt>
159 <dl class="function">
160 <dt id="src.ElementTree.tostring">
161 <code class="descclassname">src.ElementTree.</code><code class="descname">tostring</code><span class="sig-paren">(</span><em>element</em>, <em>encoding=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/ElementTree.html#tostring"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ElementTree.tostring" title="Permalink to this definition">¶</a></dt>
165 <dt id="src.ElementTree.TreeBuilder">
166 <em class="property">class </em><code class="descclassname">src.ElementTree.</code><code class="descname">TreeBuilder</code><span class="sig-paren">(</span><em>element_factory=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/ElementTree.html#TreeBuilder"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ElementTree.TreeBuilder" title="Permalink to this definition">¶</a></dt>
167 <dd><dl class="method">
168 <dt id="src.ElementTree.TreeBuilder.close">
169 <code class="descname">close</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/ElementTree.html#TreeBuilder.close"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ElementTree.TreeBuilder.close" title="Permalink to this definition">¶</a></dt>
173 <dt id="src.ElementTree.TreeBuilder.data">
174 <code class="descname">data</code><span class="sig-paren">(</span><em>data</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/ElementTree.html#TreeBuilder.data"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ElementTree.TreeBuilder.data" title="Permalink to this definition">¶</a></dt>
178 <dt id="src.ElementTree.TreeBuilder.end">
179 <code class="descname">end</code><span class="sig-paren">(</span><em>tag</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/ElementTree.html#TreeBuilder.end"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ElementTree.TreeBuilder.end" title="Permalink to this definition">¶</a></dt>
183 <dt id="src.ElementTree.TreeBuilder.start">
184 <code class="descname">start</code><span class="sig-paren">(</span><em>tag</em>, <em>attrs</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/ElementTree.html#TreeBuilder.start"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ElementTree.TreeBuilder.start" title="Permalink to this definition">¶</a></dt>
189 <dl class="function">
190 <dt id="src.ElementTree.XML">
191 <code class="descclassname">src.ElementTree.</code><code class="descname">XML</code><span class="sig-paren">(</span><em>text</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/ElementTree.html#XML"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ElementTree.XML" title="Permalink to this definition">¶</a></dt>
195 <dt id="src.ElementTree.XMLTreeBuilder">
196 <em class="property">class </em><code class="descclassname">src.ElementTree.</code><code class="descname">XMLTreeBuilder</code><span class="sig-paren">(</span><em>html=0</em>, <em>target=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/ElementTree.html#XMLTreeBuilder"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ElementTree.XMLTreeBuilder" title="Permalink to this definition">¶</a></dt>
197 <dd><dl class="method">
198 <dt id="src.ElementTree.XMLTreeBuilder.close">
199 <code class="descname">close</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/ElementTree.html#XMLTreeBuilder.close"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ElementTree.XMLTreeBuilder.close" title="Permalink to this definition">¶</a></dt>
203 <dt id="src.ElementTree.XMLTreeBuilder.doctype">
204 <code class="descname">doctype</code><span class="sig-paren">(</span><em>name</em>, <em>pubid</em>, <em>system</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/ElementTree.html#XMLTreeBuilder.doctype"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ElementTree.XMLTreeBuilder.doctype" title="Permalink to this definition">¶</a></dt>
208 <dt id="src.ElementTree.XMLTreeBuilder.feed">
209 <code class="descname">feed</code><span class="sig-paren">(</span><em>data</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/ElementTree.html#XMLTreeBuilder.feed"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ElementTree.XMLTreeBuilder.feed" title="Permalink to this definition">¶</a></dt>
215 <div class="section" id="module-src.architecture">
216 <span id="src-architecture-module"></span><h2>src.architecture module<a class="headerlink" href="#module-src.architecture" title="Permalink to this headline">¶</a></h2>
217 <p>In this file : all the stuff that can change with the architecture
218 on which SAT is running</p>
219 <dl class="function">
220 <dt id="src.architecture.get_distrib_version">
221 <code class="descclassname">src.architecture.</code><code class="descname">get_distrib_version</code><span class="sig-paren">(</span><em>distrib</em>, <em>codes</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/architecture.html#get_distrib_version"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.architecture.get_distrib_version" title="Permalink to this definition">¶</a></dt>
222 <dd><p>Gets the version of the distribution</p>
223 <table class="docutils field-list" frame="void" rules="none">
224 <col class="field-name" />
225 <col class="field-body" />
227 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
228 <li><strong>str</strong> (<em>distrib</em>) – The distribution on which the version will be found.</li>
229 <li><strong>L{Mapping}</strong> (<em>codes</em>) – The map containing distribution correlation table.</li>
233 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">The version of the distribution on which salomeTools is running,
234 regarding the distribution correlation table contained in codes
238 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">str</p>
245 <dl class="function">
246 <dt id="src.architecture.get_distribution">
247 <code class="descclassname">src.architecture.</code><code class="descname">get_distribution</code><span class="sig-paren">(</span><em>codes</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/architecture.html#get_distribution"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.architecture.get_distribution" title="Permalink to this definition">¶</a></dt>
248 <dd><p>Gets the code for the distribution</p>
249 <table class="docutils field-list" frame="void" rules="none">
250 <col class="field-name" />
251 <col class="field-body" />
253 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>L{Mapping}</strong> (<em>codes</em>) – The map containing distribution correlation table.</td>
255 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">The distribution on which salomeTools is running, regarding the
256 distribution correlation table contained in codes variable.</td>
258 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str</td>
264 <dl class="function">
265 <dt id="src.architecture.get_nb_proc">
266 <code class="descclassname">src.architecture.</code><code class="descname">get_nb_proc</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/architecture.html#get_nb_proc"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.architecture.get_nb_proc" title="Permalink to this definition">¶</a></dt>
267 <dd><dl class="docutils">
268 <dt>Gets the number of processors of the machine </dt>
269 <dd>on which salomeTools is running.</dd>
271 <table class="docutils field-list" frame="void" rules="none">
272 <col class="field-name" />
273 <col class="field-body" />
275 <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the number of processors.</td>
277 <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">str</td>
283 <dl class="function">
284 <dt id="src.architecture.get_python_version">
285 <code class="descclassname">src.architecture.</code><code class="descname">get_python_version</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/architecture.html#get_python_version"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.architecture.get_python_version" title="Permalink to this definition">¶</a></dt>
286 <dd><p>Gets the version of the running python.</p>
287 <table class="docutils field-list" frame="void" rules="none">
288 <col class="field-name" />
289 <col class="field-body" />
291 <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the version of the running python.</td>
293 <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">str</td>
299 <dl class="function">
300 <dt id="src.architecture.get_user">
301 <code class="descclassname">src.architecture.</code><code class="descname">get_user</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/architecture.html#get_user"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.architecture.get_user" title="Permalink to this definition">¶</a></dt>
302 <dd><p>method that gets the username that launched sat</p>
303 <table class="docutils field-list" frame="void" rules="none">
304 <col class="field-name" />
305 <col class="field-body" />
307 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str</td>
313 <dl class="function">
314 <dt id="src.architecture.is_windows">
315 <code class="descclassname">src.architecture.</code><code class="descname">is_windows</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/architecture.html#is_windows"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.architecture.is_windows" title="Permalink to this definition">¶</a></dt>
316 <dd><p>method that checks windows OS</p>
317 <table class="docutils field-list" frame="void" rules="none">
318 <col class="field-name" />
319 <col class="field-body" />
321 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">boolean</td>
328 <div class="section" id="module-src.compilation">
329 <span id="src-compilation-module"></span><h2>src.compilation module<a class="headerlink" href="#module-src.compilation" title="Permalink to this headline">¶</a></h2>
331 <dt id="src.compilation.Builder">
332 <em class="property">class </em><code class="descclassname">src.compilation.</code><code class="descname">Builder</code><span class="sig-paren">(</span><em>config</em>, <em>logger</em>, <em>product_info</em>, <em>options=OptResult( )</em>, <em>check_src=True</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/compilation.html#Builder"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.compilation.Builder" title="Permalink to this definition">¶</a></dt>
333 <dd><p>Class to handle all construction steps, like cmake, configure, make, …</p>
335 <dt id="src.compilation.Builder.build_configure">
336 <code class="descname">build_configure</code><span class="sig-paren">(</span><em>options=''</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/compilation.html#Builder.build_configure"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.compilation.Builder.build_configure" title="Permalink to this definition">¶</a></dt>
340 <dt id="src.compilation.Builder.check">
341 <code class="descname">check</code><span class="sig-paren">(</span><em>command=''</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/compilation.html#Builder.check"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.compilation.Builder.check" title="Permalink to this definition">¶</a></dt>
345 <dt id="src.compilation.Builder.cmake">
346 <code class="descname">cmake</code><span class="sig-paren">(</span><em>options=''</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/compilation.html#Builder.cmake"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.compilation.Builder.cmake" title="Permalink to this definition">¶</a></dt>
350 <dt id="src.compilation.Builder.complete_environment">
351 <code class="descname">complete_environment</code><span class="sig-paren">(</span><em>make_options</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/compilation.html#Builder.complete_environment"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.compilation.Builder.complete_environment" title="Permalink to this definition">¶</a></dt>
355 <dt id="src.compilation.Builder.configure">
356 <code class="descname">configure</code><span class="sig-paren">(</span><em>options=''</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/compilation.html#Builder.configure"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.compilation.Builder.configure" title="Permalink to this definition">¶</a></dt>
360 <dt id="src.compilation.Builder.do_batch_script_build">
361 <code class="descname">do_batch_script_build</code><span class="sig-paren">(</span><em>script</em>, <em>nb_proc</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/compilation.html#Builder.do_batch_script_build"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.compilation.Builder.do_batch_script_build" title="Permalink to this definition">¶</a></dt>
365 <dt id="src.compilation.Builder.do_default_build">
366 <code class="descname">do_default_build</code><span class="sig-paren">(</span><em>build_conf_options=''</em>, <em>configure_options=''</em>, <em>show_warning=True</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/compilation.html#Builder.do_default_build"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.compilation.Builder.do_default_build" title="Permalink to this definition">¶</a></dt>
370 <dt id="src.compilation.Builder.do_python_script_build">
371 <code class="descname">do_python_script_build</code><span class="sig-paren">(</span><em>script</em>, <em>nb_proc</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/compilation.html#Builder.do_python_script_build"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.compilation.Builder.do_python_script_build" title="Permalink to this definition">¶</a></dt>
375 <dt id="src.compilation.Builder.do_script_build">
376 <code class="descname">do_script_build</code><span class="sig-paren">(</span><em>script</em>, <em>number_of_proc=0</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/compilation.html#Builder.do_script_build"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.compilation.Builder.do_script_build" title="Permalink to this definition">¶</a></dt>
380 <dt id="src.compilation.Builder.hack_libtool">
381 <code class="descname">hack_libtool</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/compilation.html#Builder.hack_libtool"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.compilation.Builder.hack_libtool" title="Permalink to this definition">¶</a></dt>
385 <dt id="src.compilation.Builder.install">
386 <code class="descname">install</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/compilation.html#Builder.install"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.compilation.Builder.install" title="Permalink to this definition">¶</a></dt>
390 <dt id="src.compilation.Builder.log">
391 <code class="descname">log</code><span class="sig-paren">(</span><em>text</em>, <em>level</em>, <em>showInfo=True</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/compilation.html#Builder.log"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.compilation.Builder.log" title="Permalink to this definition">¶</a></dt>
395 <dt id="src.compilation.Builder.log_command">
396 <code class="descname">log_command</code><span class="sig-paren">(</span><em>command</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/compilation.html#Builder.log_command"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.compilation.Builder.log_command" title="Permalink to this definition">¶</a></dt>
400 <dt id="src.compilation.Builder.make">
401 <code class="descname">make</code><span class="sig-paren">(</span><em>nb_proc</em>, <em>make_opt=''</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/compilation.html#Builder.make"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.compilation.Builder.make" title="Permalink to this definition">¶</a></dt>
405 <dt id="src.compilation.Builder.prepare">
406 <code class="descname">prepare</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/compilation.html#Builder.prepare"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.compilation.Builder.prepare" title="Permalink to this definition">¶</a></dt>
410 <dt id="src.compilation.Builder.put_txt_log_in_appli_log_dir">
411 <code class="descname">put_txt_log_in_appli_log_dir</code><span class="sig-paren">(</span><em>file_name</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/compilation.html#Builder.put_txt_log_in_appli_log_dir"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.compilation.Builder.put_txt_log_in_appli_log_dir" title="Permalink to this definition">¶</a></dt>
412 <dd><dl class="docutils">
413 <dt>Put the txt log (that contain the system logs, like make command</dt>
414 <dd>output) in the directory <APPLICATION DIR>/LOGS/<product_name>/</dd>
416 <table class="docutils field-list" frame="void" rules="none">
417 <col class="field-name" />
418 <col class="field-body" />
420 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Str</strong> (<em>file_name</em>) – the name of the file to write</td>
427 <dt id="src.compilation.Builder.wmake">
428 <code class="descname">wmake</code><span class="sig-paren">(</span><em>nb_proc</em>, <em>opt_nb_proc=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/compilation.html#Builder.wmake"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.compilation.Builder.wmake" title="Permalink to this definition">¶</a></dt>
434 <div class="section" id="module-src.debug">
435 <span id="src-debug-module"></span><h2>src.debug module<a class="headerlink" href="#module-src.debug" title="Permalink to this headline">¶</a></h2>
436 <p>This file assume DEBUG functionalities use</p>
438 <li>print debug messages in sys.stderr for salomeTools</li>
439 <li>show pretty print debug representation from instances of SAT classes
440 (pretty print src.pyconf.Config), and python dict/list etc. (as ‘aVariable’)</li>
442 <p>WARNING: obviously supposedly show messages in SAT development phase, not production</p>
444 >> import debug as DBG
445 >> DBG.write(“aTitle”, aVariable) # not shown in production
446 >> DBG.write(“aTitle”, aVariable, True) # unconditionaly shown (as show=True)</p>
447 <p>to set show message as development phase:
448 >> DBG.push_debug(True)</p>
449 <p>to set no show message as production phase:
450 >> DBG.push_debug(False)</p>
451 <p>to set show message temporary as development phase, only in a method:
452 >> def aMethodToDebug(…):
453 >> DBG.push_debug(True) #force show as appended status
454 >> etc. method code with some DBG.write()
455 >> DBG.pop_debug() #restore previous status (show or not show)
457 <p>to set a message for future fix, as temporary problem to not forget:
458 DBG.tofix(“aTitle”, aVariable, True/False) #True/False in production shown, or not</p>
459 <p>in command line interface you could redirect stderr to file ‘myDebug.log’:
460 >> sat compile … 2> myDebug.log # only stderr
461 >> sat compile … &> myDebug.log # stdout and stderr</p>
463 <dt id="src.debug.InStream">
464 <em class="property">class </em><code class="descclassname">src.debug.</code><code class="descname">InStream</code><span class="sig-paren">(</span><em>buf=''</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/debug.html#InStream"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.debug.InStream" title="Permalink to this definition">¶</a></dt>
465 <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">StringIO.StringIO</span></code></p>
466 <p>utility class for pyconf.Config input iostream</p>
470 <dt id="src.debug.OutStream">
471 <em class="property">class </em><code class="descclassname">src.debug.</code><code class="descname">OutStream</code><span class="sig-paren">(</span><em>buf=''</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/debug.html#OutStream"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.debug.OutStream" title="Permalink to this definition">¶</a></dt>
472 <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">StringIO.StringIO</span></code></p>
473 <p>utility class for pyconf.Config output iostream</p>
475 <dt id="src.debug.OutStream.close">
476 <code class="descname">close</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/debug.html#OutStream.close"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.debug.OutStream.close" title="Permalink to this definition">¶</a></dt>
477 <dd><p>because Config.__save__ calls close() stream as file
478 keep value before lost as self.value</p>
483 <dl class="function">
484 <dt id="src.debug.getLocalEnv">
485 <code class="descclassname">src.debug.</code><code class="descname">getLocalEnv</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/debug.html#getLocalEnv"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.debug.getLocalEnv" title="Permalink to this definition">¶</a></dt>
486 <dd><p>get string for environment variables representation</p>
489 <dl class="function">
490 <dt id="src.debug.getStrConfigDbg">
491 <code class="descclassname">src.debug.</code><code class="descname">getStrConfigDbg</code><span class="sig-paren">(</span><em>config</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/debug.html#getStrConfigDbg"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.debug.getStrConfigDbg" title="Permalink to this definition">¶</a></dt>
492 <dd><p>set string as saveConfigDbg,
493 as (path expression evaluation) for debug</p>
496 <dl class="function">
497 <dt id="src.debug.getStrConfigStd">
498 <code class="descclassname">src.debug.</code><code class="descname">getStrConfigStd</code><span class="sig-paren">(</span><em>config</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/debug.html#getStrConfigStd"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.debug.getStrConfigStd" title="Permalink to this definition">¶</a></dt>
499 <dd><p>set string as saveConfigStd, as file .pyconf</p>
502 <dl class="function">
503 <dt id="src.debug.indent">
504 <code class="descclassname">src.debug.</code><code class="descname">indent</code><span class="sig-paren">(</span><em>text</em>, <em>amount=2</em>, <em>ch=' '</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/debug.html#indent"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.debug.indent" title="Permalink to this definition">¶</a></dt>
505 <dd><p>indent multi lines message</p>
508 <dl class="function">
509 <dt id="src.debug.pop_debug">
510 <code class="descclassname">src.debug.</code><code class="descname">pop_debug</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/debug.html#pop_debug"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.debug.pop_debug" title="Permalink to this definition">¶</a></dt>
511 <dd><p>restore previous debug outputs status</p>
514 <dl class="function">
515 <dt id="src.debug.push_debug">
516 <code class="descclassname">src.debug.</code><code class="descname">push_debug</code><span class="sig-paren">(</span><em>aBool</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/debug.html#push_debug"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.debug.push_debug" title="Permalink to this definition">¶</a></dt>
517 <dd><p>set debug outputs activated, or not</p>
520 <dl class="function">
521 <dt id="src.debug.saveConfigDbg">
522 <code class="descclassname">src.debug.</code><code class="descname">saveConfigDbg</code><span class="sig-paren">(</span><em>config</em>, <em>aStream</em>, <em>indent=0</em>, <em>path=''</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/debug.html#saveConfigDbg"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.debug.saveConfigDbg" title="Permalink to this definition">¶</a></dt>
523 <dd><p>pyconf returns multilines (path expression evaluation) for debug</p>
526 <dl class="function">
527 <dt id="src.debug.saveConfigStd">
528 <code class="descclassname">src.debug.</code><code class="descname">saveConfigStd</code><span class="sig-paren">(</span><em>config</em>, <em>aStream</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/debug.html#saveConfigStd"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.debug.saveConfigStd" title="Permalink to this definition">¶</a></dt>
529 <dd><p>returns as file .pyconf</p>
532 <dl class="function">
533 <dt id="src.debug.tofix">
534 <code class="descclassname">src.debug.</code><code class="descname">tofix</code><span class="sig-paren">(</span><em>title</em>, <em>var=''</em>, <em>force=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/debug.html#tofix"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.debug.tofix" title="Permalink to this definition">¶</a></dt>
535 <dd><p>write sys.stderr a message if _debug[-1]==True or optionaly force=True
536 use this only if no logger accessible for classic
537 logger.warning(message) or logger.debug(message)</p>
540 <dl class="function">
541 <dt id="src.debug.write">
542 <code class="descclassname">src.debug.</code><code class="descname">write</code><span class="sig-paren">(</span><em>title</em>, <em>var=''</em>, <em>force=None</em>, <em>fmt='\n#### DEBUG: %s:\n%s\n'</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/debug.html#write"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.debug.write" title="Permalink to this definition">¶</a></dt>
543 <dd><p>write sys.stderr a message if _debug[-1]==True or optionaly force=True</p>
547 <div class="section" id="module-src.environment">
548 <span id="src-environment-module"></span><h2>src.environment module<a class="headerlink" href="#module-src.environment" title="Permalink to this headline">¶</a></h2>
550 <dt id="src.environment.Environ">
551 <em class="property">class </em><code class="descclassname">src.environment.</code><code class="descname">Environ</code><span class="sig-paren">(</span><em>environ=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#Environ"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.Environ" title="Permalink to this definition">¶</a></dt>
552 <dd><p>Class to manage the environment context</p>
554 <dt id="src.environment.Environ.append">
555 <code class="descname">append</code><span class="sig-paren">(</span><em>key</em>, <em>value</em>, <em>sep=':'</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#Environ.append"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.Environ.append" title="Permalink to this definition">¶</a></dt>
556 <dd><p>Same as append_value but the value argument can be a list</p>
557 <table class="docutils field-list" frame="void" rules="none">
558 <col class="field-name" />
559 <col class="field-body" />
561 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
562 <li><strong>str</strong> (<em>sep</em>) – the environment variable to append</li>
563 <li><strong>str</strong><strong> or </strong><strong>list</strong> (<em>value</em>) – the value(s) to append to key</li>
564 <li><strong>str</strong> – the separator string</li>
573 <dt id="src.environment.Environ.append_value">
574 <code class="descname">append_value</code><span class="sig-paren">(</span><em>key</em>, <em>value</em>, <em>sep=':'</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#Environ.append_value"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.Environ.append_value" title="Permalink to this definition">¶</a></dt>
575 <dd><p>append value to key using sep</p>
576 <table class="docutils field-list" frame="void" rules="none">
577 <col class="field-name" />
578 <col class="field-body" />
580 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
581 <li><strong>str</strong> (<em>sep</em>) – the environment variable to append</li>
582 <li><strong>str</strong> – the value to append to key</li>
583 <li><strong>str</strong> – the separator string</li>
592 <dt id="src.environment.Environ.command_value">
593 <code class="descname">command_value</code><span class="sig-paren">(</span><em>key</em>, <em>command</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#Environ.command_value"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.Environ.command_value" title="Permalink to this definition">¶</a></dt>
594 <dd><p>Get the value given by the system command “command”
595 and put it in the environment variable key</p>
596 <table class="docutils field-list" frame="void" rules="none">
597 <col class="field-name" />
598 <col class="field-body" />
600 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
601 <li><strong>str</strong> (<em>command</em>) – the environment variable</li>
602 <li><strong>str</strong> – the command to execute</li>
611 <dt id="src.environment.Environ.get">
612 <code class="descname">get</code><span class="sig-paren">(</span><em>key</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#Environ.get"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.Environ.get" title="Permalink to this definition">¶</a></dt>
613 <dd><p>Get the value of the environment variable “key”</p>
614 <table class="docutils field-list" frame="void" rules="none">
615 <col class="field-name" />
616 <col class="field-body" />
618 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>key</em>) – the environment variable</td>
625 <dt id="src.environment.Environ.is_defined">
626 <code class="descname">is_defined</code><span class="sig-paren">(</span><em>key</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#Environ.is_defined"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.Environ.is_defined" title="Permalink to this definition">¶</a></dt>
627 <dd><p>Check if the key exists in the environment</p>
628 <table class="docutils field-list" frame="void" rules="none">
629 <col class="field-name" />
630 <col class="field-body" />
632 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>key</em>) – the environment variable to check</td>
639 <dt id="src.environment.Environ.prepend">
640 <code class="descname">prepend</code><span class="sig-paren">(</span><em>key</em>, <em>value</em>, <em>sep=':'</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#Environ.prepend"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.Environ.prepend" title="Permalink to this definition">¶</a></dt>
641 <dd><p>Same as prepend_value but the value argument can be a list</p>
642 <table class="docutils field-list" frame="void" rules="none">
643 <col class="field-name" />
644 <col class="field-body" />
646 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
647 <li><strong>str</strong> (<em>sep</em>) – the environment variable to prepend</li>
648 <li><strong>str</strong><strong> or </strong><strong>list</strong> (<em>value</em>) – the value(s) to prepend to key</li>
649 <li><strong>str</strong> – the separator string</li>
658 <dt id="src.environment.Environ.prepend_value">
659 <code class="descname">prepend_value</code><span class="sig-paren">(</span><em>key</em>, <em>value</em>, <em>sep=':'</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#Environ.prepend_value"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.Environ.prepend_value" title="Permalink to this definition">¶</a></dt>
660 <dd><p>prepend value to key using sep</p>
661 <table class="docutils field-list" frame="void" rules="none">
662 <col class="field-name" />
663 <col class="field-body" />
665 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
666 <li><strong>str</strong> (<em>sep</em>) – the environment variable to prepend</li>
667 <li><strong>str</strong> – the value to prepend to key</li>
668 <li><strong>str</strong> – the separator string</li>
677 <dt id="src.environment.Environ.set">
678 <code class="descname">set</code><span class="sig-paren">(</span><em>key</em>, <em>value</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#Environ.set"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.Environ.set" title="Permalink to this definition">¶</a></dt>
679 <dd><p>Set the environment variable “key” to value “value”</p>
680 <table class="docutils field-list" frame="void" rules="none">
681 <col class="field-name" />
682 <col class="field-body" />
684 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
685 <li><strong>str</strong> (<em>value</em>) – the environment variable to set</li>
686 <li><strong>str</strong> – the value</li>
697 <dt id="src.environment.FileEnvWriter">
698 <em class="property">class </em><code class="descclassname">src.environment.</code><code class="descname">FileEnvWriter</code><span class="sig-paren">(</span><em>config</em>, <em>logger</em>, <em>out_dir</em>, <em>src_root</em>, <em>env_info=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#FileEnvWriter"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.FileEnvWriter" title="Permalink to this definition">¶</a></dt>
699 <dd><p>Class to dump the environment to a file.</p>
701 <dt id="src.environment.FileEnvWriter.write_cfgForPy_file">
702 <code class="descname">write_cfgForPy_file</code><span class="sig-paren">(</span><em>filename</em>, <em>additional_env={}</em>, <em>for_package=None</em>, <em>with_commercial=True</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#FileEnvWriter.write_cfgForPy_file"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.FileEnvWriter.write_cfgForPy_file" title="Permalink to this definition">¶</a></dt>
703 <dd><p>Append to current opened aFile a cfgForPy
704 environment (SALOME python launcher).</p>
705 <table class="docutils field-list" frame="void" rules="none">
706 <col class="field-name" />
707 <col class="field-body" />
709 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
710 <li><strong>str</strong> (<em>for_package</em>) – the file path</li>
711 <li><strong>dict</strong> (<em>additional_env</em>) – a dictionary of additional variables
712 to add to the environment</li>
713 <li><strong>str</strong> – If not None, produce a relative environment
714 designed for a package.</li>
723 <dt id="src.environment.FileEnvWriter.write_env_file">
724 <code class="descname">write_env_file</code><span class="sig-paren">(</span><em>filename</em>, <em>forBuild</em>, <em>shell</em>, <em>for_package=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#FileEnvWriter.write_env_file"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.FileEnvWriter.write_env_file" title="Permalink to this definition">¶</a></dt>
725 <dd><p>Create an environment file.</p>
726 <table class="docutils field-list" frame="void" rules="none">
727 <col class="field-name" />
728 <col class="field-body" />
730 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
731 <li><strong>str</strong> (<em>shell</em>) – the file path</li>
732 <li><strong>bool</strong> (<em>forBuild</em>) – if true, the build environment</li>
733 <li><strong>str</strong> – the type of file wanted (.sh, .bat)</li>
737 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">The path to the generated file</p>
740 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">str</p>
750 <dt id="src.environment.SalomeEnviron">
751 <em class="property">class </em><code class="descclassname">src.environment.</code><code class="descname">SalomeEnviron</code><span class="sig-paren">(</span><em>cfg</em>, <em>environ</em>, <em>forBuild=False</em>, <em>for_package=None</em>, <em>enable_simple_env_script=True</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#SalomeEnviron"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.SalomeEnviron" title="Permalink to this definition">¶</a></dt>
752 <dd><p>Class to manage the environment of SALOME.</p>
754 <dt id="src.environment.SalomeEnviron.add_comment">
755 <code class="descname">add_comment</code><span class="sig-paren">(</span><em>comment</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#SalomeEnviron.add_comment"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.SalomeEnviron.add_comment" title="Permalink to this definition">¶</a></dt>
756 <dd><p>Add a commentary to the out stream (in case of file generation)</p>
757 <table class="docutils field-list" frame="void" rules="none">
758 <col class="field-name" />
759 <col class="field-body" />
761 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>comment</em>) – the commentary to add</td>
768 <dt id="src.environment.SalomeEnviron.add_line">
769 <code class="descname">add_line</code><span class="sig-paren">(</span><em>nb_line</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#SalomeEnviron.add_line"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.SalomeEnviron.add_line" title="Permalink to this definition">¶</a></dt>
770 <dd><p>Add empty lines to the out stream (in case of file generation)</p>
771 <table class="docutils field-list" frame="void" rules="none">
772 <col class="field-name" />
773 <col class="field-body" />
775 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>int</strong> (<em>nb_line</em>) – the number of empty lines to add</td>
782 <dt id="src.environment.SalomeEnviron.add_warning">
783 <code class="descname">add_warning</code><span class="sig-paren">(</span><em>warning</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#SalomeEnviron.add_warning"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.SalomeEnviron.add_warning" title="Permalink to this definition">¶</a></dt>
784 <dd><p>Add a warning to the out stream (in case of file generation)</p>
785 <table class="docutils field-list" frame="void" rules="none">
786 <col class="field-name" />
787 <col class="field-body" />
789 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>warning</em>) – the warning to add</td>
796 <dt id="src.environment.SalomeEnviron.append">
797 <code class="descname">append</code><span class="sig-paren">(</span><em>key</em>, <em>value</em>, <em>sep=':'</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#SalomeEnviron.append"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.SalomeEnviron.append" title="Permalink to this definition">¶</a></dt>
798 <dd><p>append value to key using sep</p>
799 <table class="docutils field-list" frame="void" rules="none">
800 <col class="field-name" />
801 <col class="field-body" />
803 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
804 <li><strong>str</strong> (<em>sep</em>) – the environment variable to append</li>
805 <li><strong>str</strong> – the value to append to key</li>
806 <li><strong>str</strong> – the separator string</li>
815 <dt id="src.environment.SalomeEnviron.dump">
816 <code class="descname">dump</code><span class="sig-paren">(</span><em>out</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#SalomeEnviron.dump"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.SalomeEnviron.dump" title="Permalink to this definition">¶</a></dt>
817 <dd><p>Write the environment to out</p>
818 <table class="docutils field-list" frame="void" rules="none">
819 <col class="field-name" />
820 <col class="field-body" />
822 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>file</strong> (<em>out</em>) – the stream where to write the environment</td>
829 <dt id="src.environment.SalomeEnviron.finish">
830 <code class="descname">finish</code><span class="sig-paren">(</span><em>required</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#SalomeEnviron.finish"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.SalomeEnviron.finish" title="Permalink to this definition">¶</a></dt>
831 <dd><p>Add a final instruction in the out file (in case of file generation)</p>
832 <table class="docutils field-list" frame="void" rules="none">
833 <col class="field-name" />
834 <col class="field-body" />
836 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>bool</strong> (<em>required</em>) – Do nothing if required is False</td>
843 <dt id="src.environment.SalomeEnviron.get">
844 <code class="descname">get</code><span class="sig-paren">(</span><em>key</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#SalomeEnviron.get"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.SalomeEnviron.get" title="Permalink to this definition">¶</a></dt>
845 <dd><p>Get the value of the environment variable “key”</p>
846 <table class="docutils field-list" frame="void" rules="none">
847 <col class="field-name" />
848 <col class="field-body" />
850 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>key</em>) – the environment variable</td>
857 <dt id="src.environment.SalomeEnviron.get_names">
858 <code class="descname">get_names</code><span class="sig-paren">(</span><em>lProducts</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#SalomeEnviron.get_names"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.SalomeEnviron.get_names" title="Permalink to this definition">¶</a></dt>
859 <dd><p>Get the products name to add in SALOME_MODULES environment variable
860 It is the name of the product, except in the case where the is a
861 component name. And it has to be in SALOME_MODULES variable only
862 if the product has the property has_salome_hui = “yes”</p>
863 <table class="docutils field-list" frame="void" rules="none">
864 <col class="field-name" />
865 <col class="field-body" />
867 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>list</strong> (<em>lProducts</em>) – List of products to potentially add</td>
874 <dt id="src.environment.SalomeEnviron.is_defined">
875 <code class="descname">is_defined</code><span class="sig-paren">(</span><em>key</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#SalomeEnviron.is_defined"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.SalomeEnviron.is_defined" title="Permalink to this definition">¶</a></dt>
876 <dd><p>Check if the key exists in the environment</p>
877 <table class="docutils field-list" frame="void" rules="none">
878 <col class="field-name" />
879 <col class="field-body" />
881 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>key</em>) – the environment variable to check</td>
888 <dt id="src.environment.SalomeEnviron.load_cfg_environment">
889 <code class="descname">load_cfg_environment</code><span class="sig-paren">(</span><em>cfg_env</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#SalomeEnviron.load_cfg_environment"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.SalomeEnviron.load_cfg_environment" title="Permalink to this definition">¶</a></dt>
890 <dd><p>Loads environment defined in cfg_env</p>
891 <table class="docutils field-list" frame="void" rules="none">
892 <col class="field-name" />
893 <col class="field-body" />
895 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Config</strong> (<em>cfg_env</em>) – A config containing an environment</td>
902 <dt id="src.environment.SalomeEnviron.prepend">
903 <code class="descname">prepend</code><span class="sig-paren">(</span><em>key</em>, <em>value</em>, <em>sep=':'</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#SalomeEnviron.prepend"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.SalomeEnviron.prepend" title="Permalink to this definition">¶</a></dt>
904 <dd><p>prepend value to key using sep</p>
905 <table class="docutils field-list" frame="void" rules="none">
906 <col class="field-name" />
907 <col class="field-body" />
909 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
910 <li><strong>str</strong> (<em>sep</em>) – the environment variable to prepend</li>
911 <li><strong>str</strong> – the value to prepend to key</li>
912 <li><strong>str</strong> – the separator string</li>
921 <dt id="src.environment.SalomeEnviron.run_env_script">
922 <code class="descname">run_env_script</code><span class="sig-paren">(</span><em>product_info</em>, <em>logger=None</em>, <em>native=False</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#SalomeEnviron.run_env_script"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.SalomeEnviron.run_env_script" title="Permalink to this definition">¶</a></dt>
923 <dd><p>Runs an environment script.</p>
924 <table class="docutils field-list" frame="void" rules="none">
925 <col class="field-name" />
926 <col class="field-body" />
928 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
929 <li><strong>Config</strong> (<em>product_info</em>) – The product description</li>
930 <li><strong>Logger</strong> (<em>logger</em>) – The logger instance to display messages</li>
931 <li><strong>Boolean</strong> (<em>native</em>) – if True load set_native_env instead of set_env</li>
940 <dt id="src.environment.SalomeEnviron.run_simple_env_script">
941 <code class="descname">run_simple_env_script</code><span class="sig-paren">(</span><em>script_path</em>, <em>logger=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#SalomeEnviron.run_simple_env_script"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.SalomeEnviron.run_simple_env_script" title="Permalink to this definition">¶</a></dt>
942 <dd><p>Runs an environment script. Same as run_env_script, but with a
943 script path as parameter.</p>
944 <table class="docutils field-list" frame="void" rules="none">
945 <col class="field-name" />
946 <col class="field-body" />
948 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
949 <li><strong>str</strong> (<em>script_path</em>) – a path to an environment script</li>
950 <li><strong>Logger</strong> (<em>logger</em>) – The logger instance to display messages</li>
959 <dt id="src.environment.SalomeEnviron.set">
960 <code class="descname">set</code><span class="sig-paren">(</span><em>key</em>, <em>value</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#SalomeEnviron.set"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.SalomeEnviron.set" title="Permalink to this definition">¶</a></dt>
961 <dd><p>Set the environment variable “key” to value “value”</p>
962 <table class="docutils field-list" frame="void" rules="none">
963 <col class="field-name" />
964 <col class="field-body" />
966 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
967 <li><strong>str</strong> (<em>value</em>) – the environment variable to set</li>
968 <li><strong>str</strong> – the value</li>
977 <dt id="src.environment.SalomeEnviron.set_a_product">
978 <code class="descname">set_a_product</code><span class="sig-paren">(</span><em>product</em>, <em>logger</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#SalomeEnviron.set_a_product"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.SalomeEnviron.set_a_product" title="Permalink to this definition">¶</a></dt>
979 <dd><p>Sets the environment of a product.</p>
980 <table class="docutils field-list" frame="void" rules="none">
981 <col class="field-name" />
982 <col class="field-body" />
984 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
985 <li><strong>str</strong> (<em>product</em>) – The product name</li>
986 <li><strong>Logger</strong> (<em>logger</em>) – The logger instance to display messages</li>
995 <dt id="src.environment.SalomeEnviron.set_application_env">
996 <code class="descname">set_application_env</code><span class="sig-paren">(</span><em>logger</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#SalomeEnviron.set_application_env"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.SalomeEnviron.set_application_env" title="Permalink to this definition">¶</a></dt>
997 <dd><p>Sets the environment defined in the APPLICATION file.</p>
998 <table class="docutils field-list" frame="void" rules="none">
999 <col class="field-name" />
1000 <col class="field-body" />
1001 <tbody valign="top">
1002 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Logger</strong> (<em>logger</em>) – The logger instance to display messages</td>
1009 <dt id="src.environment.SalomeEnviron.set_cpp_env">
1010 <code class="descname">set_cpp_env</code><span class="sig-paren">(</span><em>product_info</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#SalomeEnviron.set_cpp_env"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.SalomeEnviron.set_cpp_env" title="Permalink to this definition">¶</a></dt>
1011 <dd><p>Sets the generic environment for a SALOME cpp product.</p>
1012 <table class="docutils field-list" frame="void" rules="none">
1013 <col class="field-name" />
1014 <col class="field-body" />
1015 <tbody valign="top">
1016 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Config</strong> (<em>product_info</em>) – The product description</td>
1023 <dt id="src.environment.SalomeEnviron.set_full_environ">
1024 <code class="descname">set_full_environ</code><span class="sig-paren">(</span><em>logger</em>, <em>env_info</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#SalomeEnviron.set_full_environ"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.SalomeEnviron.set_full_environ" title="Permalink to this definition">¶</a></dt>
1025 <dd><p>Sets the full environment for products
1026 specified in env_info dictionary.</p>
1027 <table class="docutils field-list" frame="void" rules="none">
1028 <col class="field-name" />
1029 <col class="field-body" />
1030 <tbody valign="top">
1031 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1032 <li><strong>Logger</strong> (<em>logger</em>) – The logger instance to display messages</li>
1033 <li><strong>list</strong> (<em>env_info</em>) – the list of products</li>
1042 <dt id="src.environment.SalomeEnviron.set_products">
1043 <code class="descname">set_products</code><span class="sig-paren">(</span><em>logger</em>, <em>src_root=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#SalomeEnviron.set_products"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.SalomeEnviron.set_products" title="Permalink to this definition">¶</a></dt>
1044 <dd><p>Sets the environment for all the products.</p>
1045 <table class="docutils field-list" frame="void" rules="none">
1046 <col class="field-name" />
1047 <col class="field-body" />
1048 <tbody valign="top">
1049 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1050 <li><strong>Logger</strong> (<em>logger</em>) – The logger instance to display messages</li>
1051 <li><strong>src</strong> (<em>src_root</em>) – the application working directory</li>
1060 <dt id="src.environment.SalomeEnviron.set_python_libdirs">
1061 <code class="descname">set_python_libdirs</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#SalomeEnviron.set_python_libdirs"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.SalomeEnviron.set_python_libdirs" title="Permalink to this definition">¶</a></dt>
1062 <dd><p>Set some generic variables for python library paths</p>
1066 <dt id="src.environment.SalomeEnviron.set_salome_generic_product_env">
1067 <code class="descname">set_salome_generic_product_env</code><span class="sig-paren">(</span><em>pi</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#SalomeEnviron.set_salome_generic_product_env"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.SalomeEnviron.set_salome_generic_product_env" title="Permalink to this definition">¶</a></dt>
1068 <dd><p>Sets the generic environment for a SALOME product.</p>
1069 <table class="docutils field-list" frame="void" rules="none">
1070 <col class="field-name" />
1071 <col class="field-body" />
1072 <tbody valign="top">
1073 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Config</strong> (<em>pi</em>) – The product description</td>
1080 <dt id="src.environment.SalomeEnviron.set_salome_minimal_product_env">
1081 <code class="descname">set_salome_minimal_product_env</code><span class="sig-paren">(</span><em>product_info</em>, <em>logger</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#SalomeEnviron.set_salome_minimal_product_env"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.SalomeEnviron.set_salome_minimal_product_env" title="Permalink to this definition">¶</a></dt>
1082 <dd><p>Sets the minimal environment for a SALOME product.
1083 xxx_ROOT_DIR and xxx_SRC_DIR</p>
1084 <table class="docutils field-list" frame="void" rules="none">
1085 <col class="field-name" />
1086 <col class="field-body" />
1087 <tbody valign="top">
1088 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1089 <li><strong>Config</strong> (<em>product_info</em>) – The product description</li>
1090 <li><strong>Logger</strong> (<em>logger</em>) – The logger instance to display messages</li>
1101 <dt id="src.environment.Shell">
1102 <em class="property">class </em><code class="descclassname">src.environment.</code><code class="descname">Shell</code><span class="sig-paren">(</span><em>name</em>, <em>extension</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#Shell"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.Shell" title="Permalink to this definition">¶</a></dt>
1103 <dd><p>Definition of a Shell.</p>
1106 <dl class="function">
1107 <dt id="src.environment.load_environment">
1108 <code class="descclassname">src.environment.</code><code class="descname">load_environment</code><span class="sig-paren">(</span><em>config</em>, <em>build</em>, <em>logger</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/environment.html#load_environment"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.environment.load_environment" title="Permalink to this definition">¶</a></dt>
1109 <dd><p>Loads the environment (used to run the tests, for example).</p>
1110 <table class="docutils field-list" frame="void" rules="none">
1111 <col class="field-name" />
1112 <col class="field-body" />
1113 <tbody valign="top">
1114 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1115 <li><strong>Config</strong> (<em>config</em>) – the global config</li>
1116 <li><strong>bool</strong> (<em>build</em>) – build environement if True</li>
1117 <li><strong>Logger</strong> (<em>logger</em>) – The logger instance to display messages</li>
1126 <div class="section" id="module-src.fileEnviron">
1127 <span id="src-fileenviron-module"></span><h2>src.fileEnviron module<a class="headerlink" href="#module-src.fileEnviron" title="Permalink to this headline">¶</a></h2>
1129 <dt id="src.fileEnviron.BashFileEnviron">
1130 <em class="property">class </em><code class="descclassname">src.fileEnviron.</code><code class="descname">BashFileEnviron</code><span class="sig-paren">(</span><em>output</em>, <em>environ=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#BashFileEnviron"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.BashFileEnviron" title="Permalink to this definition">¶</a></dt>
1131 <dd><p>Bases: <a class="reference internal" href="#src.fileEnviron.FileEnviron" title="src.fileEnviron.FileEnviron"><code class="xref py py-class docutils literal notranslate"><span class="pre">src.fileEnviron.FileEnviron</span></code></a></p>
1132 <p>Class for bash shell.</p>
1134 <dt id="src.fileEnviron.BashFileEnviron.command_value">
1135 <code class="descname">command_value</code><span class="sig-paren">(</span><em>key</em>, <em>command</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#BashFileEnviron.command_value"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.BashFileEnviron.command_value" title="Permalink to this definition">¶</a></dt>
1136 <dd><p>Get the value given by the system command “command”
1137 and put it in the environment variable key.
1138 Has to be overwritten in the derived classes
1139 This can be seen as a virtual method</p>
1140 <table class="docutils field-list" frame="void" rules="none">
1141 <col class="field-name" />
1142 <col class="field-body" />
1143 <tbody valign="top">
1144 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1145 <li><strong>str</strong> (<em>command</em>) – the environment variable</li>
1146 <li><strong>str</strong> – the command to execute</li>
1155 <dt id="src.fileEnviron.BashFileEnviron.finish">
1156 <code class="descname">finish</code><span class="sig-paren">(</span><em>required=True</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#BashFileEnviron.finish"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.BashFileEnviron.finish" title="Permalink to this definition">¶</a></dt>
1157 <dd><p>Add a final instruction in the out file (in case of file generation)</p>
1158 <table class="docutils field-list" frame="void" rules="none">
1159 <col class="field-name" />
1160 <col class="field-body" />
1161 <tbody valign="top">
1162 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>bool</strong> (<em>required</em>) – Do nothing if required is False</td>
1169 <dt id="src.fileEnviron.BashFileEnviron.set">
1170 <code class="descname">set</code><span class="sig-paren">(</span><em>key</em>, <em>value</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#BashFileEnviron.set"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.BashFileEnviron.set" title="Permalink to this definition">¶</a></dt>
1171 <dd><p>Set the environment variable “key” to value “value”</p>
1172 <table class="docutils field-list" frame="void" rules="none">
1173 <col class="field-name" />
1174 <col class="field-body" />
1175 <tbody valign="top">
1176 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1177 <li><strong>str</strong> (<em>value</em>) – the environment variable to set</li>
1178 <li><strong>str</strong> – the value</li>
1189 <dt id="src.fileEnviron.BatFileEnviron">
1190 <em class="property">class </em><code class="descclassname">src.fileEnviron.</code><code class="descname">BatFileEnviron</code><span class="sig-paren">(</span><em>output</em>, <em>environ=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#BatFileEnviron"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.BatFileEnviron" title="Permalink to this definition">¶</a></dt>
1191 <dd><p>Bases: <a class="reference internal" href="#src.fileEnviron.FileEnviron" title="src.fileEnviron.FileEnviron"><code class="xref py py-class docutils literal notranslate"><span class="pre">src.fileEnviron.FileEnviron</span></code></a></p>
1192 <p>for Windows batch shell.</p>
1194 <dt id="src.fileEnviron.BatFileEnviron.add_comment">
1195 <code class="descname">add_comment</code><span class="sig-paren">(</span><em>comment</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#BatFileEnviron.add_comment"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.BatFileEnviron.add_comment" title="Permalink to this definition">¶</a></dt>
1196 <dd><p>Add a comment in the shell file</p>
1197 <table class="docutils field-list" frame="void" rules="none">
1198 <col class="field-name" />
1199 <col class="field-body" />
1200 <tbody valign="top">
1201 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>comment</em>) – the comment to add</td>
1208 <dt id="src.fileEnviron.BatFileEnviron.command_value">
1209 <code class="descname">command_value</code><span class="sig-paren">(</span><em>key</em>, <em>command</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#BatFileEnviron.command_value"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.BatFileEnviron.command_value" title="Permalink to this definition">¶</a></dt>
1210 <dd><p>Get the value given by the system command “command”
1211 and put it in the environment variable key.
1212 Has to be overwritten in the derived classes
1213 This can be seen as a virtual method</p>
1214 <table class="docutils field-list" frame="void" rules="none">
1215 <col class="field-name" />
1216 <col class="field-body" />
1217 <tbody valign="top">
1218 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1219 <li><strong>str</strong> (<em>command</em>) – the environment variable</li>
1220 <li><strong>str</strong> – the command to execute</li>
1229 <dt id="src.fileEnviron.BatFileEnviron.finish">
1230 <code class="descname">finish</code><span class="sig-paren">(</span><em>required=True</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#BatFileEnviron.finish"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.BatFileEnviron.finish" title="Permalink to this definition">¶</a></dt>
1231 <dd><p>Add a final instruction in the out file (in case of file generation)
1232 In the particular windows case, do nothing</p>
1233 <table class="docutils field-list" frame="void" rules="none">
1234 <col class="field-name" />
1235 <col class="field-body" />
1236 <tbody valign="top">
1237 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>bool</strong> (<em>required</em>) – Do nothing if required is False</td>
1244 <dt id="src.fileEnviron.BatFileEnviron.get">
1245 <code class="descname">get</code><span class="sig-paren">(</span><em>key</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#BatFileEnviron.get"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.BatFileEnviron.get" title="Permalink to this definition">¶</a></dt>
1246 <dd><p>Get the value of the environment variable “key”</p>
1247 <table class="docutils field-list" frame="void" rules="none">
1248 <col class="field-name" />
1249 <col class="field-body" />
1250 <tbody valign="top">
1251 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>key</em>) – the environment variable</td>
1258 <dt id="src.fileEnviron.BatFileEnviron.set">
1259 <code class="descname">set</code><span class="sig-paren">(</span><em>key</em>, <em>value</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#BatFileEnviron.set"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.BatFileEnviron.set" title="Permalink to this definition">¶</a></dt>
1260 <dd><p>Set the environment variable “key” to value “value”</p>
1261 <table class="docutils field-list" frame="void" rules="none">
1262 <col class="field-name" />
1263 <col class="field-body" />
1264 <tbody valign="top">
1265 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1266 <li><strong>str</strong> (<em>value</em>) – the environment variable to set</li>
1267 <li><strong>str</strong> – the value</li>
1278 <dt id="src.fileEnviron.ContextFileEnviron">
1279 <em class="property">class </em><code class="descclassname">src.fileEnviron.</code><code class="descname">ContextFileEnviron</code><span class="sig-paren">(</span><em>output</em>, <em>environ=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#ContextFileEnviron"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.ContextFileEnviron" title="Permalink to this definition">¶</a></dt>
1280 <dd><p>Bases: <a class="reference internal" href="#src.fileEnviron.FileEnviron" title="src.fileEnviron.FileEnviron"><code class="xref py py-class docutils literal notranslate"><span class="pre">src.fileEnviron.FileEnviron</span></code></a></p>
1281 <p>Class for a salome context configuration file.</p>
1283 <dt id="src.fileEnviron.ContextFileEnviron.add_echo">
1284 <code class="descname">add_echo</code><span class="sig-paren">(</span><em>text</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#ContextFileEnviron.add_echo"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.ContextFileEnviron.add_echo" title="Permalink to this definition">¶</a></dt>
1285 <dd><p>Add a comment</p>
1286 <table class="docutils field-list" frame="void" rules="none">
1287 <col class="field-name" />
1288 <col class="field-body" />
1289 <tbody valign="top">
1290 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>text</em>) – the comment to add</td>
1297 <dt id="src.fileEnviron.ContextFileEnviron.add_warning">
1298 <code class="descname">add_warning</code><span class="sig-paren">(</span><em>warning</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#ContextFileEnviron.add_warning"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.ContextFileEnviron.add_warning" title="Permalink to this definition">¶</a></dt>
1299 <dd><p>Add a warning</p>
1300 <table class="docutils field-list" frame="void" rules="none">
1301 <col class="field-name" />
1302 <col class="field-body" />
1303 <tbody valign="top">
1304 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>text</em>) – the warning to add</td>
1311 <dt id="src.fileEnviron.ContextFileEnviron.append_value">
1312 <code class="descname">append_value</code><span class="sig-paren">(</span><em>key</em>, <em>value</em>, <em>sep=':'</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#ContextFileEnviron.append_value"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.ContextFileEnviron.append_value" title="Permalink to this definition">¶</a></dt>
1313 <dd><p>append value to key using sep</p>
1314 <table class="docutils field-list" frame="void" rules="none">
1315 <col class="field-name" />
1316 <col class="field-body" />
1317 <tbody valign="top">
1318 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1319 <li><strong>str</strong> (<em>sep</em>) – the environment variable to append</li>
1320 <li><strong>str</strong> – the value to append to key</li>
1321 <li><strong>str</strong> – the separator string</li>
1330 <dt id="src.fileEnviron.ContextFileEnviron.command_value">
1331 <code class="descname">command_value</code><span class="sig-paren">(</span><em>key</em>, <em>command</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#ContextFileEnviron.command_value"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.ContextFileEnviron.command_value" title="Permalink to this definition">¶</a></dt>
1332 <dd><p>Get the value given by the system command “command”
1333 and put it in the environment variable key.
1334 Has to be overwritten in the derived classes
1335 This can be seen as a virtual method</p>
1336 <table class="docutils field-list" frame="void" rules="none">
1337 <col class="field-name" />
1338 <col class="field-body" />
1339 <tbody valign="top">
1340 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1341 <li><strong>str</strong> (<em>command</em>) – the environment variable</li>
1342 <li><strong>str</strong> – the command to execute</li>
1351 <dt id="src.fileEnviron.ContextFileEnviron.finish">
1352 <code class="descname">finish</code><span class="sig-paren">(</span><em>required=True</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#ContextFileEnviron.finish"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.ContextFileEnviron.finish" title="Permalink to this definition">¶</a></dt>
1353 <dd><p>Add a final instruction in the out file (in case of file generation)</p>
1354 <table class="docutils field-list" frame="void" rules="none">
1355 <col class="field-name" />
1356 <col class="field-body" />
1357 <tbody valign="top">
1358 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>bool</strong> (<em>required</em>) – Do nothing if required is False</td>
1365 <dt id="src.fileEnviron.ContextFileEnviron.get">
1366 <code class="descname">get</code><span class="sig-paren">(</span><em>key</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#ContextFileEnviron.get"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.ContextFileEnviron.get" title="Permalink to this definition">¶</a></dt>
1367 <dd><p>Get the value of the environment variable “key”</p>
1368 <table class="docutils field-list" frame="void" rules="none">
1369 <col class="field-name" />
1370 <col class="field-body" />
1371 <tbody valign="top">
1372 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>key</em>) – the environment variable</td>
1379 <dt id="src.fileEnviron.ContextFileEnviron.prepend_value">
1380 <code class="descname">prepend_value</code><span class="sig-paren">(</span><em>key</em>, <em>value</em>, <em>sep=':'</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#ContextFileEnviron.prepend_value"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.ContextFileEnviron.prepend_value" title="Permalink to this definition">¶</a></dt>
1381 <dd><p>prepend value to key using sep</p>
1382 <table class="docutils field-list" frame="void" rules="none">
1383 <col class="field-name" />
1384 <col class="field-body" />
1385 <tbody valign="top">
1386 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1387 <li><strong>str</strong> (<em>sep</em>) – the environment variable to prepend</li>
1388 <li><strong>str</strong> – the value to prepend to key</li>
1389 <li><strong>str</strong> – the separator string</li>
1398 <dt id="src.fileEnviron.ContextFileEnviron.set">
1399 <code class="descname">set</code><span class="sig-paren">(</span><em>key</em>, <em>value</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#ContextFileEnviron.set"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.ContextFileEnviron.set" title="Permalink to this definition">¶</a></dt>
1400 <dd><p>Set the environment variable “key” to value “value”</p>
1401 <table class="docutils field-list" frame="void" rules="none">
1402 <col class="field-name" />
1403 <col class="field-body" />
1404 <tbody valign="top">
1405 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1406 <li><strong>str</strong> (<em>value</em>) – the environment variable to set</li>
1407 <li><strong>str</strong> – the value</li>
1418 <dt id="src.fileEnviron.FileEnviron">
1419 <em class="property">class </em><code class="descclassname">src.fileEnviron.</code><code class="descname">FileEnviron</code><span class="sig-paren">(</span><em>output</em>, <em>environ=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#FileEnviron"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.FileEnviron" title="Permalink to this definition">¶</a></dt>
1420 <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
1421 <p>Base class for shell environment</p>
1423 <dt id="src.fileEnviron.FileEnviron.add_comment">
1424 <code class="descname">add_comment</code><span class="sig-paren">(</span><em>comment</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#FileEnviron.add_comment"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.FileEnviron.add_comment" title="Permalink to this definition">¶</a></dt>
1425 <dd><p>Add a comment in the shell file</p>
1426 <table class="docutils field-list" frame="void" rules="none">
1427 <col class="field-name" />
1428 <col class="field-body" />
1429 <tbody valign="top">
1430 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>comment</em>) – the comment to add</td>
1437 <dt id="src.fileEnviron.FileEnviron.add_echo">
1438 <code class="descname">add_echo</code><span class="sig-paren">(</span><em>text</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#FileEnviron.add_echo"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.FileEnviron.add_echo" title="Permalink to this definition">¶</a></dt>
1439 <dd><p>Add a “echo” in the shell file</p>
1440 <table class="docutils field-list" frame="void" rules="none">
1441 <col class="field-name" />
1442 <col class="field-body" />
1443 <tbody valign="top">
1444 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>text</em>) – the text to echo</td>
1451 <dt id="src.fileEnviron.FileEnviron.add_line">
1452 <code class="descname">add_line</code><span class="sig-paren">(</span><em>number</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#FileEnviron.add_line"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.FileEnviron.add_line" title="Permalink to this definition">¶</a></dt>
1453 <dd><p>Add some empty lines in the shell file</p>
1454 <table class="docutils field-list" frame="void" rules="none">
1455 <col class="field-name" />
1456 <col class="field-body" />
1457 <tbody valign="top">
1458 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>int</strong> (<em>number</em>) – the number of lines to add</td>
1465 <dt id="src.fileEnviron.FileEnviron.add_warning">
1466 <code class="descname">add_warning</code><span class="sig-paren">(</span><em>warning</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#FileEnviron.add_warning"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.FileEnviron.add_warning" title="Permalink to this definition">¶</a></dt>
1467 <dd><p>Add a warning “echo” in the shell file</p>
1468 <table class="docutils field-list" frame="void" rules="none">
1469 <col class="field-name" />
1470 <col class="field-body" />
1471 <tbody valign="top">
1472 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>warning</em>) – the text to echo</td>
1479 <dt id="src.fileEnviron.FileEnviron.append">
1480 <code class="descname">append</code><span class="sig-paren">(</span><em>key</em>, <em>value</em>, <em>sep=':'</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#FileEnviron.append"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.FileEnviron.append" title="Permalink to this definition">¶</a></dt>
1481 <dd><p>Same as append_value but the value argument can be a list</p>
1482 <table class="docutils field-list" frame="void" rules="none">
1483 <col class="field-name" />
1484 <col class="field-body" />
1485 <tbody valign="top">
1486 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1487 <li><strong>str</strong> (<em>sep</em>) – the environment variable to append</li>
1488 <li><strong>str</strong><strong> or </strong><strong>list</strong> (<em>value</em>) – the value(s) to append to key</li>
1489 <li><strong>str</strong> – the separator string</li>
1498 <dt id="src.fileEnviron.FileEnviron.append_value">
1499 <code class="descname">append_value</code><span class="sig-paren">(</span><em>key</em>, <em>value</em>, <em>sep=':'</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#FileEnviron.append_value"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.FileEnviron.append_value" title="Permalink to this definition">¶</a></dt>
1500 <dd><p>append value to key using sep</p>
1501 <table class="docutils field-list" frame="void" rules="none">
1502 <col class="field-name" />
1503 <col class="field-body" />
1504 <tbody valign="top">
1505 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1506 <li><strong>str</strong> (<em>sep</em>) – the environment variable to append</li>
1507 <li><strong>str</strong> – the value to append to key</li>
1508 <li><strong>str</strong> – the separator string</li>
1517 <dt id="src.fileEnviron.FileEnviron.command_value">
1518 <code class="descname">command_value</code><span class="sig-paren">(</span><em>key</em>, <em>command</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#FileEnviron.command_value"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.FileEnviron.command_value" title="Permalink to this definition">¶</a></dt>
1519 <dd><p>Get the value given by the system command “command”
1520 and put it in the environment variable key.
1521 Has to be overwritten in the derived classes
1522 This can be seen as a virtual method</p>
1523 <table class="docutils field-list" frame="void" rules="none">
1524 <col class="field-name" />
1525 <col class="field-body" />
1526 <tbody valign="top">
1527 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1528 <li><strong>str</strong> (<em>command</em>) – the environment variable</li>
1529 <li><strong>str</strong> – the command to execute</li>
1538 <dt id="src.fileEnviron.FileEnviron.finish">
1539 <code class="descname">finish</code><span class="sig-paren">(</span><em>required=True</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#FileEnviron.finish"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.FileEnviron.finish" title="Permalink to this definition">¶</a></dt>
1540 <dd><p>Add a final instruction in the out file (in case of file generation)</p>
1541 <table class="docutils field-list" frame="void" rules="none">
1542 <col class="field-name" />
1543 <col class="field-body" />
1544 <tbody valign="top">
1545 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>bool</strong> (<em>required</em>) – Do nothing if required is False</td>
1552 <dt id="src.fileEnviron.FileEnviron.get">
1553 <code class="descname">get</code><span class="sig-paren">(</span><em>key</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#FileEnviron.get"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.FileEnviron.get" title="Permalink to this definition">¶</a></dt>
1554 <dd><p>Get the value of the environment variable “key”</p>
1555 <table class="docutils field-list" frame="void" rules="none">
1556 <col class="field-name" />
1557 <col class="field-body" />
1558 <tbody valign="top">
1559 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>key</em>) – the environment variable</td>
1566 <dt id="src.fileEnviron.FileEnviron.is_defined">
1567 <code class="descname">is_defined</code><span class="sig-paren">(</span><em>key</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#FileEnviron.is_defined"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.FileEnviron.is_defined" title="Permalink to this definition">¶</a></dt>
1568 <dd><p>Check if the key exists in the environment</p>
1569 <table class="docutils field-list" frame="void" rules="none">
1570 <col class="field-name" />
1571 <col class="field-body" />
1572 <tbody valign="top">
1573 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>key</em>) – the environment variable to check</td>
1580 <dt id="src.fileEnviron.FileEnviron.prepend">
1581 <code class="descname">prepend</code><span class="sig-paren">(</span><em>key</em>, <em>value</em>, <em>sep=':'</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#FileEnviron.prepend"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.FileEnviron.prepend" title="Permalink to this definition">¶</a></dt>
1582 <dd><p>Same as prepend_value but the value argument can be a list</p>
1583 <table class="docutils field-list" frame="void" rules="none">
1584 <col class="field-name" />
1585 <col class="field-body" />
1586 <tbody valign="top">
1587 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1588 <li><strong>str</strong> (<em>sep</em>) – the environment variable to prepend</li>
1589 <li><strong>str</strong><strong> or </strong><strong>list</strong> (<em>value</em>) – the value(s) to prepend to key</li>
1590 <li><strong>str</strong> – the separator string</li>
1599 <dt id="src.fileEnviron.FileEnviron.prepend_value">
1600 <code class="descname">prepend_value</code><span class="sig-paren">(</span><em>key</em>, <em>value</em>, <em>sep=':'</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#FileEnviron.prepend_value"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.FileEnviron.prepend_value" title="Permalink to this definition">¶</a></dt>
1601 <dd><p>prepend value to key using sep</p>
1602 <table class="docutils field-list" frame="void" rules="none">
1603 <col class="field-name" />
1604 <col class="field-body" />
1605 <tbody valign="top">
1606 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1607 <li><strong>str</strong> (<em>sep</em>) – the environment variable to prepend</li>
1608 <li><strong>str</strong> – the value to prepend to key</li>
1609 <li><strong>str</strong> – the separator string</li>
1618 <dt id="src.fileEnviron.FileEnviron.set">
1619 <code class="descname">set</code><span class="sig-paren">(</span><em>key</em>, <em>value</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#FileEnviron.set"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.FileEnviron.set" title="Permalink to this definition">¶</a></dt>
1620 <dd><p>Set the environment variable ‘key’ to value ‘value’</p>
1621 <table class="docutils field-list" frame="void" rules="none">
1622 <col class="field-name" />
1623 <col class="field-body" />
1624 <tbody valign="top">
1625 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1626 <li><strong>str</strong> (<em>value</em>) – the environment variable to set</li>
1627 <li><strong>str</strong> – the value</li>
1638 <dt id="src.fileEnviron.LauncherFileEnviron">
1639 <em class="property">class </em><code class="descclassname">src.fileEnviron.</code><code class="descname">LauncherFileEnviron</code><span class="sig-paren">(</span><em>output</em>, <em>environ=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#LauncherFileEnviron"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.LauncherFileEnviron" title="Permalink to this definition">¶</a></dt>
1640 <dd><p>Class to generate a launcher file script
1641 (in python syntax) SalomeContext API</p>
1643 <dt id="src.fileEnviron.LauncherFileEnviron.add">
1644 <code class="descname">add</code><span class="sig-paren">(</span><em>key</em>, <em>value</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#LauncherFileEnviron.add"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.LauncherFileEnviron.add" title="Permalink to this definition">¶</a></dt>
1645 <dd><p>prepend value to key using sep</p>
1646 <table class="docutils field-list" frame="void" rules="none">
1647 <col class="field-name" />
1648 <col class="field-body" />
1649 <tbody valign="top">
1650 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1651 <li><strong>str</strong> (<em>value</em>) – the environment variable to prepend</li>
1652 <li><strong>str</strong> – the value to prepend to key</li>
1661 <dt id="src.fileEnviron.LauncherFileEnviron.add_comment">
1662 <code class="descname">add_comment</code><span class="sig-paren">(</span><em>comment</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#LauncherFileEnviron.add_comment"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.LauncherFileEnviron.add_comment" title="Permalink to this definition">¶</a></dt>
1666 <dt id="src.fileEnviron.LauncherFileEnviron.add_echo">
1667 <code class="descname">add_echo</code><span class="sig-paren">(</span><em>text</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#LauncherFileEnviron.add_echo"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.LauncherFileEnviron.add_echo" title="Permalink to this definition">¶</a></dt>
1668 <dd><p>Add a comment</p>
1669 <table class="docutils field-list" frame="void" rules="none">
1670 <col class="field-name" />
1671 <col class="field-body" />
1672 <tbody valign="top">
1673 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>text</em>) – the comment to add</td>
1680 <dt id="src.fileEnviron.LauncherFileEnviron.add_line">
1681 <code class="descname">add_line</code><span class="sig-paren">(</span><em>number</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#LauncherFileEnviron.add_line"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.LauncherFileEnviron.add_line" title="Permalink to this definition">¶</a></dt>
1682 <dd><p>Add some empty lines in the launcher file</p>
1683 <table class="docutils field-list" frame="void" rules="none">
1684 <col class="field-name" />
1685 <col class="field-body" />
1686 <tbody valign="top">
1687 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>int</strong> (<em>number</em>) – the number of lines to add</td>
1694 <dt id="src.fileEnviron.LauncherFileEnviron.add_warning">
1695 <code class="descname">add_warning</code><span class="sig-paren">(</span><em>warning</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#LauncherFileEnviron.add_warning"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.LauncherFileEnviron.add_warning" title="Permalink to this definition">¶</a></dt>
1696 <dd><p>Add a warning</p>
1697 <table class="docutils field-list" frame="void" rules="none">
1698 <col class="field-name" />
1699 <col class="field-body" />
1700 <tbody valign="top">
1701 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>text</em>) – the warning to add</td>
1708 <dt id="src.fileEnviron.LauncherFileEnviron.append">
1709 <code class="descname">append</code><span class="sig-paren">(</span><em>key</em>, <em>value</em>, <em>sep=':'</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#LauncherFileEnviron.append"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.LauncherFileEnviron.append" title="Permalink to this definition">¶</a></dt>
1710 <dd><p>Same as append_value but the value argument can be a list</p>
1711 <table class="docutils field-list" frame="void" rules="none">
1712 <col class="field-name" />
1713 <col class="field-body" />
1714 <tbody valign="top">
1715 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1716 <li><strong>str</strong> (<em>sep</em>) – the environment variable to append</li>
1717 <li><strong>str</strong><strong> or </strong><strong>list</strong> (<em>value</em>) – the value(s) to append to key</li>
1718 <li><strong>str</strong> – the separator string</li>
1727 <dt id="src.fileEnviron.LauncherFileEnviron.append_value">
1728 <code class="descname">append_value</code><span class="sig-paren">(</span><em>key</em>, <em>value</em>, <em>sep=':'</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#LauncherFileEnviron.append_value"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.LauncherFileEnviron.append_value" title="Permalink to this definition">¶</a></dt>
1729 <dd><p>append value to key using sep</p>
1730 <table class="docutils field-list" frame="void" rules="none">
1731 <col class="field-name" />
1732 <col class="field-body" />
1733 <tbody valign="top">
1734 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1735 <li><strong>str</strong> (<em>sep</em>) – the environment variable to append</li>
1736 <li><strong>str</strong> – the value to append to key</li>
1737 <li><strong>str</strong> – the separator string</li>
1746 <dt id="src.fileEnviron.LauncherFileEnviron.change_to_launcher">
1747 <code class="descname">change_to_launcher</code><span class="sig-paren">(</span><em>value</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#LauncherFileEnviron.change_to_launcher"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.LauncherFileEnviron.change_to_launcher" title="Permalink to this definition">¶</a></dt>
1751 <dt id="src.fileEnviron.LauncherFileEnviron.command_value">
1752 <code class="descname">command_value</code><span class="sig-paren">(</span><em>key</em>, <em>command</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#LauncherFileEnviron.command_value"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.LauncherFileEnviron.command_value" title="Permalink to this definition">¶</a></dt>
1753 <dd><p>Get the value given by the system command “command”
1754 and put it in the environment variable key.</p>
1755 <table class="docutils field-list" frame="void" rules="none">
1756 <col class="field-name" />
1757 <col class="field-body" />
1758 <tbody valign="top">
1759 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1760 <li><strong>str</strong> (<em>command</em>) – the environment variable</li>
1761 <li><strong>str</strong> – the command to execute</li>
1770 <dt id="src.fileEnviron.LauncherFileEnviron.finish">
1771 <code class="descname">finish</code><span class="sig-paren">(</span><em>required=True</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#LauncherFileEnviron.finish"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.LauncherFileEnviron.finish" title="Permalink to this definition">¶</a></dt>
1772 <dd><p>Add a final instruction in the out file (in case of file generation)
1773 In the particular launcher case, do nothing</p>
1774 <table class="docutils field-list" frame="void" rules="none">
1775 <col class="field-name" />
1776 <col class="field-body" />
1777 <tbody valign="top">
1778 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>bool</strong> (<em>required</em>) – Do nothing if required is False</td>
1785 <dt id="src.fileEnviron.LauncherFileEnviron.get">
1786 <code class="descname">get</code><span class="sig-paren">(</span><em>key</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#LauncherFileEnviron.get"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.LauncherFileEnviron.get" title="Permalink to this definition">¶</a></dt>
1787 <dd><p>Get the value of the environment variable “key”</p>
1788 <table class="docutils field-list" frame="void" rules="none">
1789 <col class="field-name" />
1790 <col class="field-body" />
1791 <tbody valign="top">
1792 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>key</em>) – the environment variable</td>
1799 <dt id="src.fileEnviron.LauncherFileEnviron.is_defined">
1800 <code class="descname">is_defined</code><span class="sig-paren">(</span><em>key</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#LauncherFileEnviron.is_defined"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.LauncherFileEnviron.is_defined" title="Permalink to this definition">¶</a></dt>
1801 <dd><p>Check if the key exists in the environment</p>
1802 <table class="docutils field-list" frame="void" rules="none">
1803 <col class="field-name" />
1804 <col class="field-body" />
1805 <tbody valign="top">
1806 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>key</em>) – the environment variable to check</td>
1813 <dt id="src.fileEnviron.LauncherFileEnviron.prepend">
1814 <code class="descname">prepend</code><span class="sig-paren">(</span><em>key</em>, <em>value</em>, <em>sep=':'</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#LauncherFileEnviron.prepend"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.LauncherFileEnviron.prepend" title="Permalink to this definition">¶</a></dt>
1815 <dd><p>Same as prepend_value but the value argument can be a list</p>
1816 <table class="docutils field-list" frame="void" rules="none">
1817 <col class="field-name" />
1818 <col class="field-body" />
1819 <tbody valign="top">
1820 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1821 <li><strong>str</strong> (<em>sep</em>) – the environment variable to prepend</li>
1822 <li><strong>str</strong><strong> or </strong><strong>list</strong> (<em>value</em>) – the value(s) to prepend to key</li>
1823 <li><strong>str</strong> – the separator string</li>
1832 <dt id="src.fileEnviron.LauncherFileEnviron.prepend_value">
1833 <code class="descname">prepend_value</code><span class="sig-paren">(</span><em>key</em>, <em>value</em>, <em>sep=':'</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#LauncherFileEnviron.prepend_value"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.LauncherFileEnviron.prepend_value" title="Permalink to this definition">¶</a></dt>
1834 <dd><p>prepend value to key using sep</p>
1835 <table class="docutils field-list" frame="void" rules="none">
1836 <col class="field-name" />
1837 <col class="field-body" />
1838 <tbody valign="top">
1839 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1840 <li><strong>str</strong> (<em>sep</em>) – the environment variable to prepend</li>
1841 <li><strong>str</strong> – the value to prepend to key</li>
1842 <li><strong>str</strong> – the separator string</li>
1851 <dt id="src.fileEnviron.LauncherFileEnviron.set">
1852 <code class="descname">set</code><span class="sig-paren">(</span><em>key</em>, <em>value</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#LauncherFileEnviron.set"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.LauncherFileEnviron.set" title="Permalink to this definition">¶</a></dt>
1853 <dd><p>Set the environment variable “key” to value “value”</p>
1854 <table class="docutils field-list" frame="void" rules="none">
1855 <col class="field-name" />
1856 <col class="field-body" />
1857 <tbody valign="top">
1858 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1859 <li><strong>str</strong> (<em>value</em>) – the environment variable to set</li>
1860 <li><strong>str</strong> – the value</li>
1871 <dt id="src.fileEnviron.ScreenEnviron">
1872 <em class="property">class </em><code class="descclassname">src.fileEnviron.</code><code class="descname">ScreenEnviron</code><span class="sig-paren">(</span><em>output</em>, <em>environ=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#ScreenEnviron"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.ScreenEnviron" title="Permalink to this definition">¶</a></dt>
1873 <dd><p>Bases: <a class="reference internal" href="#src.fileEnviron.FileEnviron" title="src.fileEnviron.FileEnviron"><code class="xref py py-class docutils literal notranslate"><span class="pre">src.fileEnviron.FileEnviron</span></code></a></p>
1875 <dt id="src.fileEnviron.ScreenEnviron.add_comment">
1876 <code class="descname">add_comment</code><span class="sig-paren">(</span><em>comment</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#ScreenEnviron.add_comment"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.ScreenEnviron.add_comment" title="Permalink to this definition">¶</a></dt>
1877 <dd><p>Add a comment in the shell file</p>
1878 <table class="docutils field-list" frame="void" rules="none">
1879 <col class="field-name" />
1880 <col class="field-body" />
1881 <tbody valign="top">
1882 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>comment</em>) – the comment to add</td>
1889 <dt id="src.fileEnviron.ScreenEnviron.add_echo">
1890 <code class="descname">add_echo</code><span class="sig-paren">(</span><em>text</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#ScreenEnviron.add_echo"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.ScreenEnviron.add_echo" title="Permalink to this definition">¶</a></dt>
1891 <dd><p>Add a “echo” in the shell file</p>
1892 <table class="docutils field-list" frame="void" rules="none">
1893 <col class="field-name" />
1894 <col class="field-body" />
1895 <tbody valign="top">
1896 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>text</em>) – the text to echo</td>
1903 <dt id="src.fileEnviron.ScreenEnviron.add_line">
1904 <code class="descname">add_line</code><span class="sig-paren">(</span><em>number</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#ScreenEnviron.add_line"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.ScreenEnviron.add_line" title="Permalink to this definition">¶</a></dt>
1905 <dd><p>Add some empty lines in the shell file</p>
1906 <table class="docutils field-list" frame="void" rules="none">
1907 <col class="field-name" />
1908 <col class="field-body" />
1909 <tbody valign="top">
1910 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>int</strong> (<em>number</em>) – the number of lines to add</td>
1917 <dt id="src.fileEnviron.ScreenEnviron.add_warning">
1918 <code class="descname">add_warning</code><span class="sig-paren">(</span><em>warning</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#ScreenEnviron.add_warning"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.ScreenEnviron.add_warning" title="Permalink to this definition">¶</a></dt>
1919 <dd><p>Add a warning “echo” in the shell file</p>
1920 <table class="docutils field-list" frame="void" rules="none">
1921 <col class="field-name" />
1922 <col class="field-body" />
1923 <tbody valign="top">
1924 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>warning</em>) – the text to echo</td>
1931 <dt id="src.fileEnviron.ScreenEnviron.append">
1932 <code class="descname">append</code><span class="sig-paren">(</span><em>name</em>, <em>value</em>, <em>sep=':'</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#ScreenEnviron.append"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.ScreenEnviron.append" title="Permalink to this definition">¶</a></dt>
1933 <dd><p>Same as append_value but the value argument can be a list</p>
1934 <table class="docutils field-list" frame="void" rules="none">
1935 <col class="field-name" />
1936 <col class="field-body" />
1937 <tbody valign="top">
1938 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1939 <li><strong>str</strong> (<em>sep</em>) – the environment variable to append</li>
1940 <li><strong>str</strong><strong> or </strong><strong>list</strong> (<em>value</em>) – the value(s) to append to key</li>
1941 <li><strong>str</strong> – the separator string</li>
1950 <dt id="src.fileEnviron.ScreenEnviron.command_value">
1951 <code class="descname">command_value</code><span class="sig-paren">(</span><em>key</em>, <em>command</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#ScreenEnviron.command_value"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.ScreenEnviron.command_value" title="Permalink to this definition">¶</a></dt>
1952 <dd><p>Get the value given by the system command “command”
1953 and put it in the environment variable key.
1954 Has to be overwritten in the derived classes
1955 This can be seen as a virtual method</p>
1956 <table class="docutils field-list" frame="void" rules="none">
1957 <col class="field-name" />
1958 <col class="field-body" />
1959 <tbody valign="top">
1960 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1961 <li><strong>str</strong> (<em>command</em>) – the environment variable</li>
1962 <li><strong>str</strong> – the command to execute</li>
1971 <dt id="src.fileEnviron.ScreenEnviron.get">
1972 <code class="descname">get</code><span class="sig-paren">(</span><em>name</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#ScreenEnviron.get"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.ScreenEnviron.get" title="Permalink to this definition">¶</a></dt>
1973 <dd><p>Get the value of the environment variable “key”</p>
1974 <table class="docutils field-list" frame="void" rules="none">
1975 <col class="field-name" />
1976 <col class="field-body" />
1977 <tbody valign="top">
1978 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>key</em>) – the environment variable</td>
1985 <dt id="src.fileEnviron.ScreenEnviron.is_defined">
1986 <code class="descname">is_defined</code><span class="sig-paren">(</span><em>name</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#ScreenEnviron.is_defined"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.ScreenEnviron.is_defined" title="Permalink to this definition">¶</a></dt>
1987 <dd><p>Check if the key exists in the environment</p>
1988 <table class="docutils field-list" frame="void" rules="none">
1989 <col class="field-name" />
1990 <col class="field-body" />
1991 <tbody valign="top">
1992 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>key</em>) – the environment variable to check</td>
1999 <dt id="src.fileEnviron.ScreenEnviron.prepend">
2000 <code class="descname">prepend</code><span class="sig-paren">(</span><em>name</em>, <em>value</em>, <em>sep=':'</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#ScreenEnviron.prepend"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.ScreenEnviron.prepend" title="Permalink to this definition">¶</a></dt>
2001 <dd><p>Same as prepend_value but the value argument can be a list</p>
2002 <table class="docutils field-list" frame="void" rules="none">
2003 <col class="field-name" />
2004 <col class="field-body" />
2005 <tbody valign="top">
2006 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
2007 <li><strong>str</strong> (<em>sep</em>) – the environment variable to prepend</li>
2008 <li><strong>str</strong><strong> or </strong><strong>list</strong> (<em>value</em>) – the value(s) to prepend to key</li>
2009 <li><strong>str</strong> – the separator string</li>
2018 <dt id="src.fileEnviron.ScreenEnviron.run_env_script">
2019 <code class="descname">run_env_script</code><span class="sig-paren">(</span><em>module</em>, <em>script</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#ScreenEnviron.run_env_script"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.ScreenEnviron.run_env_script" title="Permalink to this definition">¶</a></dt>
2023 <dt id="src.fileEnviron.ScreenEnviron.set">
2024 <code class="descname">set</code><span class="sig-paren">(</span><em>name</em>, <em>value</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#ScreenEnviron.set"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.ScreenEnviron.set" title="Permalink to this definition">¶</a></dt>
2025 <dd><p>Set the environment variable ‘key’ to value ‘value’</p>
2026 <table class="docutils field-list" frame="void" rules="none">
2027 <col class="field-name" />
2028 <col class="field-body" />
2029 <tbody valign="top">
2030 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
2031 <li><strong>str</strong> (<em>value</em>) – the environment variable to set</li>
2032 <li><strong>str</strong> – the value</li>
2041 <dt id="src.fileEnviron.ScreenEnviron.write">
2042 <code class="descname">write</code><span class="sig-paren">(</span><em>command</em>, <em>name</em>, <em>value</em>, <em>sign='='</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#ScreenEnviron.write"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.ScreenEnviron.write" title="Permalink to this definition">¶</a></dt>
2047 <dl class="function">
2048 <dt id="src.fileEnviron.get_file_environ">
2049 <code class="descclassname">src.fileEnviron.</code><code class="descname">get_file_environ</code><span class="sig-paren">(</span><em>output</em>, <em>shell</em>, <em>environ=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#get_file_environ"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.get_file_environ" title="Permalink to this definition">¶</a></dt>
2050 <dd><p>Instantiate correct FileEnvironment sub-class.</p>
2051 <table class="docutils field-list" frame="void" rules="none">
2052 <col class="field-name" />
2053 <col class="field-body" />
2054 <tbody valign="top">
2055 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
2056 <li><strong>file</strong> (<em>output</em>) – the output file stream.</li>
2057 <li><strong>str</strong> (<em>shell</em>) – the type of shell syntax to use.</li>
2058 <li><strong>dict</strong> (<em>environ</em>) – a potential additional environment.</li>
2066 <dl class="function">
2067 <dt id="src.fileEnviron.special_path_separator">
2068 <code class="descclassname">src.fileEnviron.</code><code class="descname">special_path_separator</code><span class="sig-paren">(</span><em>name</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fileEnviron.html#special_path_separator"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fileEnviron.special_path_separator" title="Permalink to this definition">¶</a></dt>
2069 <dd><p>TCLLIBPATH, TKLIBPATH, PV_PLUGIN_PATH environments variables need
2070 some exotic path separator.
2071 This function gives the separator regarding the name of the variable
2072 to append or prepend.</p>
2073 <table class="docutils field-list" frame="void" rules="none">
2074 <col class="field-name" />
2075 <col class="field-body" />
2076 <tbody valign="top">
2077 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>name</em>) – The name of the variable to find the separator</td>
2084 <div class="section" id="module-src.fork">
2085 <span id="src-fork-module"></span><h2>src.fork module<a class="headerlink" href="#module-src.fork" title="Permalink to this headline">¶</a></h2>
2086 <dl class="function">
2087 <dt id="src.fork.batch">
2088 <code class="descclassname">src.fork.</code><code class="descname">batch</code><span class="sig-paren">(</span><em>cmd</em>, <em>logger</em>, <em>cwd</em>, <em>args=[]</em>, <em>log=None</em>, <em>delai=20</em>, <em>sommeil=1</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fork.html#batch"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fork.batch" title="Permalink to this definition">¶</a></dt>
2091 <dl class="function">
2092 <dt id="src.fork.batch_salome">
2093 <code class="descclassname">src.fork.</code><code class="descname">batch_salome</code><span class="sig-paren">(</span><em>cmd</em>, <em>logger</em>, <em>cwd</em>, <em>args</em>, <em>getTmpDir</em>, <em>pendant='SALOME_Session_Server'</em>, <em>fin='killSalome.py'</em>, <em>log=None</em>, <em>delai=20</em>, <em>sommeil=1</em>, <em>delaiapp=0</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fork.html#batch_salome"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fork.batch_salome" title="Permalink to this definition">¶</a></dt>
2096 <dl class="function">
2097 <dt id="src.fork.launch_command">
2098 <code class="descclassname">src.fork.</code><code class="descname">launch_command</code><span class="sig-paren">(</span><em>cmd</em>, <em>logger</em>, <em>cwd</em>, <em>args=[]</em>, <em>log=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fork.html#launch_command"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fork.launch_command" title="Permalink to this definition">¶</a></dt>
2101 <dl class="function">
2102 <dt id="src.fork.show_progress">
2103 <code class="descclassname">src.fork.</code><code class="descname">show_progress</code><span class="sig-paren">(</span><em>logger</em>, <em>top</em>, <em>delai</em>, <em>ss=''</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fork.html#show_progress"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fork.show_progress" title="Permalink to this definition">¶</a></dt>
2104 <dd><p>shortcut function to display the progression</p>
2105 <table class="docutils field-list" frame="void" rules="none">
2106 <col class="field-name" />
2107 <col class="field-body" />
2108 <tbody valign="top">
2109 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
2110 <li><strong>Logger</strong> (<em>logger</em>) – The logging instance</li>
2111 <li><strong>int</strong> (<em>delai</em>) – the number to display</li>
2112 <li><strong>int</strong> – the number max</li>
2113 <li><strong>str</strong> (<em>ss</em>) – the string to display</li>
2121 <dl class="function">
2122 <dt id="src.fork.write_back">
2123 <code class="descclassname">src.fork.</code><code class="descname">write_back</code><span class="sig-paren">(</span><em>logger</em>, <em>message</em>, <em>level</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/fork.html#write_back"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.fork.write_back" title="Permalink to this definition">¶</a></dt>
2124 <dd><p>shortcut function to write at the begin of the line</p>
2125 <table class="docutils field-list" frame="void" rules="none">
2126 <col class="field-name" />
2127 <col class="field-body" />
2128 <tbody valign="top">
2129 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
2130 <li><strong>Logger</strong> (<em>logger</em>) – The logging instance</li>
2131 <li><strong>str</strong> (<em>message</em>) – the text to display</li>
2132 <li><strong>int</strong> (<em>level</em>) – the level of verbosity</li>
2141 <div class="section" id="module-src.logger">
2142 <span id="src-logger-module"></span><h2>src.logger module<a class="headerlink" href="#module-src.logger" title="Permalink to this headline">¶</a></h2>
2143 <p>Implements the classes and method relative to the logging</p>
2145 <dt id="src.logger.Logger">
2146 <em class="property">class </em><code class="descclassname">src.logger.</code><code class="descname">Logger</code><span class="sig-paren">(</span><em>config</em>, <em>silent_sysstd=False</em>, <em>all_in_terminal=False</em>, <em>micro_command=False</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/logger.html#Logger"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.logger.Logger" title="Permalink to this definition">¶</a></dt>
2147 <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
2148 <p>Class to handle log mechanism.</p>
2150 <dt id="src.logger.Logger.add_link">
2151 <code class="descname">add_link</code><span class="sig-paren">(</span><em>log_file_name</em>, <em>command_name</em>, <em>command_res</em>, <em>full_launched_command</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/logger.html#Logger.add_link"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.logger.Logger.add_link" title="Permalink to this definition">¶</a></dt>
2152 <dd><p>Add a link to another log file.</p>
2153 <table class="docutils field-list" frame="void" rules="none">
2154 <col class="field-name" />
2155 <col class="field-body" />
2156 <tbody valign="top">
2157 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
2158 <li><strong>str</strong> (<em>command_res</em>) – The file name of the link.</li>
2159 <li><strong>str</strong> – The name of the command linked.</li>
2160 <li><strong>str</strong> – The result of the command linked. “0” or “1”</li>
2164 <tr class="field-even field"><th class="field-name" colspan="2">Parma full_launched_command str:</th></tr>
2165 <tr class="field-even field"><td> </td><td class="field-body"><p class="first last">The full lanch command
2166 (“sat command …”)</p>
2174 <dt id="src.logger.Logger.end_write">
2175 <code class="descname">end_write</code><span class="sig-paren">(</span><em>attribute</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/logger.html#Logger.end_write"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.logger.Logger.end_write" title="Permalink to this definition">¶</a></dt>
2176 <dd><p>Called just after command end: Put all fields
2177 corresponding to the command end context (time).
2178 Write the log xml file on the hard drive.
2179 And display the command to launch to get the log</p>
2180 <table class="docutils field-list" frame="void" rules="none">
2181 <col class="field-name" />
2182 <col class="field-body" />
2183 <tbody valign="top">
2184 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>dict</strong> (<em>attribute</em>) – the attribute to add to the node “Site”.</td>
2191 <dt id="src.logger.Logger.error">
2192 <code class="descname">error</code><span class="sig-paren">(</span><em>message</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/logger.html#Logger.error"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.logger.Logger.error" title="Permalink to this definition">¶</a></dt>
2193 <dd><p>Print an error.</p>
2194 <table class="docutils field-list" frame="void" rules="none">
2195 <col class="field-name" />
2196 <col class="field-body" />
2197 <tbody valign="top">
2198 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>message</em>) – The message to print.</td>
2205 <dt id="src.logger.Logger.flush">
2206 <code class="descname">flush</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/logger.html#Logger.flush"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.logger.Logger.flush" title="Permalink to this definition">¶</a></dt>
2207 <dd><p>Flush terminal</p>
2211 <dt id="src.logger.Logger.put_initial_xml_fields">
2212 <code class="descname">put_initial_xml_fields</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/logger.html#Logger.put_initial_xml_fields"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.logger.Logger.put_initial_xml_fields" title="Permalink to this definition">¶</a></dt>
2213 <dd><p>Called at class initialization: Put all fields
2214 corresponding to the command context (user, time, …)</p>
2218 <dt id="src.logger.Logger.write">
2219 <code class="descname">write</code><span class="sig-paren">(</span><em>message</em>, <em>level=None</em>, <em>screenOnly=False</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/logger.html#Logger.write"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.logger.Logger.write" title="Permalink to this definition">¶</a></dt>
2220 <dd><p>function used in the commands
2221 to print in the terminal and the log file.</p>
2222 <table class="docutils field-list" frame="void" rules="none">
2223 <col class="field-name" />
2224 <col class="field-body" />
2225 <tbody valign="top">
2226 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
2227 <li><strong>str</strong> (<em>message</em>) – The message to print.</li>
2228 <li><strong>int</strong> (<em>level</em>) – The output level corresponding
2229 to the message 0 < level < 6.</li>
2230 <li><strong>boolean</strong> (<em>screenOnly</em>) – if True, do not write in log file.</li>
2240 <dl class="function">
2241 <dt id="src.logger.date_to_datetime">
2242 <code class="descclassname">src.logger.</code><code class="descname">date_to_datetime</code><span class="sig-paren">(</span><em>date</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/logger.html#date_to_datetime"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.logger.date_to_datetime" title="Permalink to this definition">¶</a></dt>
2243 <dd><p>From a string date in format YYYYMMDD_HHMMSS
2244 returns list year, mon, day, hour, minutes, seconds</p>
2245 <table class="docutils field-list" frame="void" rules="none">
2246 <col class="field-name" />
2247 <col class="field-body" />
2248 <tbody valign="top">
2249 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>date</em>) – The date in format YYYYMMDD_HHMMSS</td>
2251 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">the same date and time in separate variables.</td>
2253 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">(str,str,str,str,str,str)</td>
2259 <dl class="function">
2260 <dt id="src.logger.list_log_file">
2261 <code class="descclassname">src.logger.</code><code class="descname">list_log_file</code><span class="sig-paren">(</span><em>dirPath</em>, <em>expression</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/logger.html#list_log_file"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.logger.list_log_file" title="Permalink to this definition">¶</a></dt>
2262 <dd><p>Find all files corresponding to expression in dirPath</p>
2263 <table class="docutils field-list" frame="void" rules="none">
2264 <col class="field-name" />
2265 <col class="field-body" />
2266 <tbody valign="top">
2267 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
2268 <li><strong>str</strong> (<em>expression</em>) – the directory where to search the files</li>
2269 <li><strong>str</strong> – the regular expression of files to find</li>
2273 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">the list of files path and informations about it</p>
2276 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">list</p>
2283 <dl class="function">
2284 <dt id="src.logger.show_command_log">
2285 <code class="descclassname">src.logger.</code><code class="descname">show_command_log</code><span class="sig-paren">(</span><em>logFilePath</em>, <em>cmd</em>, <em>application</em>, <em>notShownCommands</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/logger.html#show_command_log"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.logger.show_command_log" title="Permalink to this definition">¶</a></dt>
2286 <dd><p>Used in updateHatXml.
2287 Determine if the log xml file logFilePath
2288 has to be shown or not in the hat log.</p>
2289 <table class="docutils field-list" frame="void" rules="none">
2290 <col class="field-name" />
2291 <col class="field-body" />
2292 <tbody valign="top">
2293 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
2294 <li><strong>str</strong> (<em>application</em>) – the path to the command xml log file</li>
2295 <li><strong>str</strong> – the command of the log file</li>
2296 <li><strong>str</strong> – the application passed as parameter
2297 to the salomeTools command</li>
2298 <li><strong>list</strong> (<em>notShownCommands</em>) – the list of commands
2299 that are not shown by default</li>
2303 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">True if cmd is not in notShownCommands and the application
2304 in the log file corresponds to application</p>
2307 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">boolean</p>
2314 <dl class="function">
2315 <dt id="src.logger.timedelta_total_seconds">
2316 <code class="descclassname">src.logger.</code><code class="descname">timedelta_total_seconds</code><span class="sig-paren">(</span><em>timedelta</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/logger.html#timedelta_total_seconds"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.logger.timedelta_total_seconds" title="Permalink to this definition">¶</a></dt>
2317 <dd><p>Replace total_seconds from datetime module
2318 in order to be compatible with old python versions</p>
2319 <table class="docutils field-list" frame="void" rules="none">
2320 <col class="field-name" />
2321 <col class="field-body" />
2322 <tbody valign="top">
2323 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>datetime.timedelta</strong> (<em>timedelta</em>) – The delta between two dates</td>
2325 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">The number of seconds corresponding to timedelta.</td>
2327 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">float</td>
2333 <dl class="function">
2334 <dt id="src.logger.update_hat_xml">
2335 <code class="descclassname">src.logger.</code><code class="descname">update_hat_xml</code><span class="sig-paren">(</span><em>logDir</em>, <em>application=None</em>, <em>notShownCommands=[]</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/logger.html#update_hat_xml"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.logger.update_hat_xml" title="Permalink to this definition">¶</a></dt>
2336 <dd><p>Create the xml file in logDir that contain all the xml file
2337 and have a name like YYYYMMDD_HHMMSS_namecmd.xml</p>
2338 <table class="docutils field-list" frame="void" rules="none">
2339 <col class="field-name" />
2340 <col class="field-body" />
2341 <tbody valign="top">
2342 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
2343 <li><strong>str</strong> (<em>application</em>) – the directory to parse</li>
2344 <li><strong>str</strong> – the name of the application if there is any</li>
2353 <div class="section" id="module-src.options">
2354 <span id="src-options-module"></span><h2>src.options module<a class="headerlink" href="#module-src.options" title="Permalink to this headline">¶</a></h2>
2355 <p>The Options class that manages the access to all options passed as
2356 parameters in salomeTools command lines</p>
2358 <dt id="src.options.OptResult">
2359 <em class="property">class </em><code class="descclassname">src.options.</code><code class="descname">OptResult</code><a class="reference internal" href="../../_modules/src/options.html#OptResult"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.options.OptResult" title="Permalink to this definition">¶</a></dt>
2360 <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
2361 <p>An instance of this class will be the object manipulated
2362 in code of all salomeTools commands
2363 The aim of this class is to have an elegant syntax to manipulate the options.</p>
2364 <div class="line-block">
2365 <div class="line">Example: </div>
2366 <div class="line">>> options, remainderArgs = command.parseArguments(args)</div>
2367 <div class="line">>> print(options.output_verbose_level)</div>
2368 <div class="line">>> ‘INFO’</div>
2373 <dt id="src.options.Options">
2374 <em class="property">class </em><code class="descclassname">src.options.</code><code class="descname">Options</code><a class="reference internal" href="../../_modules/src/options.html#Options"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.options.Options" title="Permalink to this definition">¶</a></dt>
2375 <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
2376 <p>Class to manage all salomeTools options</p>
2378 <dt id="src.options.Options.add_option">
2379 <code class="descname">add_option</code><span class="sig-paren">(</span><em>shortName</em>, <em>longName</em>, <em>optionType</em>, <em>destName</em>, <em>helpString=''</em>, <em>default=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/options.html#Options.add_option"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.options.Options.add_option" title="Permalink to this definition">¶</a></dt>
2380 <dd><p>Add an option to a command. It gets all attributes
2381 of an option and append it in the options field</p>
2382 <table class="docutils field-list" frame="void" rules="none">
2383 <col class="field-name" />
2384 <col class="field-body" />
2385 <tbody valign="top">
2386 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
2387 <li><strong>shortName</strong> – (str)
2388 The short name of the option (as ‘-l’ for level option).</li>
2389 <li><strong>longName</strong> – (str)
2390 The long name of the option (as ‘–level’ for level option).</li>
2391 <li><strong>optionType</strong> – (str) The type of the option (ex “int”).</li>
2392 <li><strong>destName</strong> – (str) The name that will be used in the code.</li>
2393 <li><strong>helpString</strong> – (str)
2394 The text to display when user ask for help on a command.</li>
2398 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">None</p>
2406 <dt id="src.options.Options.debug_write">
2407 <code class="descname">debug_write</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/options.html#Options.debug_write"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.options.Options.debug_write" title="Permalink to this definition">¶</a></dt>
2411 <dt id="src.options.Options.filterLevel">
2412 <code class="descname">filterLevel</code><span class="sig-paren">(</span><em>aLevel</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/options.html#Options.filterLevel"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.options.Options.filterLevel" title="Permalink to this definition">¶</a></dt>
2413 <dd><p>filter level logging values</p>
2417 <dt id="src.options.Options.filterList2">
2418 <code class="descname">filterList2</code><span class="sig-paren">(</span><em>aStr</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/options.html#Options.filterList2"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.options.Options.filterList2" title="Permalink to this definition">¶</a></dt>
2419 <dd><p>filter a list as ‘KERNEL,YACS,etc.’</p>
2423 <dt id="src.options.Options.getDetailOption">
2424 <code class="descname">getDetailOption</code><span class="sig-paren">(</span><em>option</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/options.html#Options.getDetailOption"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.options.Options.getDetailOption" title="Permalink to this definition">¶</a></dt>
2425 <dd><p>for convenience</p>
2426 <table class="docutils field-list" frame="void" rules="none">
2427 <col class="field-name" />
2428 <col class="field-body" />
2429 <tbody valign="top">
2430 <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">(tuple) 4-elements (shortName, longName, optionType, helpString)</td>
2437 <dt id="src.options.Options.get_help">
2438 <code class="descname">get_help</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/options.html#Options.get_help"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.options.Options.get_help" title="Permalink to this definition">¶</a></dt>
2439 <dd><p>Returns all options stored in self.options
2440 as help message colored string</p>
2441 <table class="docutils field-list" frame="void" rules="none">
2442 <col class="field-name" />
2443 <col class="field-body" />
2444 <tbody valign="top">
2445 <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">(str) colored string</td>
2452 <dt id="src.options.Options.indent">
2453 <code class="descname">indent</code><span class="sig-paren">(</span><em>text</em>, <em>amount</em>, <em>car=' '</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/options.html#Options.indent"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.options.Options.indent" title="Permalink to this definition">¶</a></dt>
2454 <dd><p>indent multi lines message</p>
2458 <dt id="src.options.Options.parse_args">
2459 <code class="descname">parse_args</code><span class="sig-paren">(</span><em>argList=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/options.html#Options.parse_args"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.options.Options.parse_args" title="Permalink to this definition">¶</a></dt>
2460 <dd><p>Instantiates the class OptResult
2461 that gives access to all options in the code</p>
2462 <table class="docutils field-list" frame="void" rules="none">
2463 <col class="field-name" />
2464 <col class="field-body" />
2465 <tbody valign="top">
2466 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>argList</strong> – (list) the raw list of arguments that were passed</td>
2468 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">(OptResult, list) as (optResult, args)
2469 optResult is the option instance to manipulate in the code.
2470 args is the full raw list of passed options</td>
2477 <dt id="src.options.Options.print_help">
2478 <code class="descname">print_help</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/options.html#Options.print_help"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.options.Options.print_help" title="Permalink to this definition">¶</a></dt>
2479 <dd><p>Method that display all options stored in self.options and there help</p>
2480 <table class="docutils field-list" frame="void" rules="none">
2481 <col class="field-name" />
2482 <col class="field-body" />
2483 <tbody valign="top">
2484 <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">None</td>
2493 <div class="section" id="module-src.printcolors">
2494 <span id="src-printcolors-module"></span><h2>src.printcolors module<a class="headerlink" href="#module-src.printcolors" title="Permalink to this headline">¶</a></h2>
2495 <p>In this file is stored the mechanism that manage color prints in the terminal</p>
2496 <dl class="function">
2497 <dt id="src.printcolors.cleancolor">
2498 <code class="descclassname">src.printcolors.</code><code class="descname">cleancolor</code><span class="sig-paren">(</span><em>message</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/printcolors.html#cleancolor"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.printcolors.cleancolor" title="Permalink to this definition">¶</a></dt>
2499 <dd><p>remove color from a colored text.</p>
2500 <table class="docutils field-list" frame="void" rules="none">
2501 <col class="field-name" />
2502 <col class="field-body" />
2503 <tbody valign="top">
2504 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>message</em>) – The text to be cleaned.</td>
2506 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">The cleaned text.</td>
2508 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str</td>
2514 <dl class="function">
2515 <dt id="src.printcolors.print_color_map">
2516 <code class="descclassname">src.printcolors.</code><code class="descname">print_color_map</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/printcolors.html#print_color_map"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.printcolors.print_color_map" title="Permalink to this definition">¶</a></dt>
2517 <dd><p>This method prints the color map</p>
2520 <dl class="function">
2521 <dt id="src.printcolors.print_color_range">
2522 <code class="descclassname">src.printcolors.</code><code class="descname">print_color_range</code><span class="sig-paren">(</span><em>start</em>, <em>end</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/printcolors.html#print_color_range"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.printcolors.print_color_range" title="Permalink to this definition">¶</a></dt>
2523 <dd><p>print possible range values for colors</p>
2524 <table class="docutils field-list" frame="void" rules="none">
2525 <col class="field-name" />
2526 <col class="field-body" />
2527 <tbody valign="top">
2528 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
2529 <li><strong>int</strong> (<em>end</em>) – The smaller value.</li>
2530 <li><strong>int</strong> – The bigger value.</li>
2538 <dl class="function">
2539 <dt id="src.printcolors.print_value">
2540 <code class="descclassname">src.printcolors.</code><code class="descname">print_value</code><span class="sig-paren">(</span><em>logger</em>, <em>label</em>, <em>value</em>, <em>level=1</em>, <em>suffix=''</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/printcolors.html#print_value"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.printcolors.print_value" title="Permalink to this definition">¶</a></dt>
2541 <dd><p>shortcut method to print a label and a value with the info color</p>
2542 <table class="docutils field-list" frame="void" rules="none">
2543 <col class="field-name" />
2544 <col class="field-body" />
2545 <tbody valign="top">
2546 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
2547 <li><strong>class logger</strong> (<em>logger</em>) – the logger instance.</li>
2548 <li><strong>int</strong> (<em>level</em>) – the label to print.</li>
2549 <li><strong>str</strong> (<em>suffix</em>) – the value to print.</li>
2550 <li><strong>int</strong> – the level of verboseness.</li>
2551 <li><strong>str</strong> – the suffix to add at the end.</li>
2559 <dl class="function">
2560 <dt id="src.printcolors.printc">
2561 <code class="descclassname">src.printcolors.</code><code class="descname">printc</code><span class="sig-paren">(</span><em>txt</em>, <em>code=''</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/printcolors.html#printc"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.printcolors.printc" title="Permalink to this definition">¶</a></dt>
2562 <dd><p>print a text with colors</p>
2563 <table class="docutils field-list" frame="void" rules="none">
2564 <col class="field-name" />
2565 <col class="field-body" />
2566 <tbody valign="top">
2567 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
2568 <li><strong>str</strong> (<em>code</em>) – The text to be printed.</li>
2569 <li><strong>str</strong> – The color to use.</li>
2573 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">The colored text.</p>
2576 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">str</p>
2583 <dl class="function">
2584 <dt id="src.printcolors.printcError">
2585 <code class="descclassname">src.printcolors.</code><code class="descname">printcError</code><span class="sig-paren">(</span><em>txt</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/printcolors.html#printcError"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.printcolors.printcError" title="Permalink to this definition">¶</a></dt>
2586 <dd><p>print a text error color</p>
2587 <table class="docutils field-list" frame="void" rules="none">
2588 <col class="field-name" />
2589 <col class="field-body" />
2590 <tbody valign="top">
2591 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>txt</em>) – The text to be printed.</td>
2593 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">The colored text.</td>
2595 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str</td>
2601 <dl class="function">
2602 <dt id="src.printcolors.printcHeader">
2603 <code class="descclassname">src.printcolors.</code><code class="descname">printcHeader</code><span class="sig-paren">(</span><em>txt</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/printcolors.html#printcHeader"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.printcolors.printcHeader" title="Permalink to this definition">¶</a></dt>
2604 <dd><p>print a text header color</p>
2605 <table class="docutils field-list" frame="void" rules="none">
2606 <col class="field-name" />
2607 <col class="field-body" />
2608 <tbody valign="top">
2609 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>txt</em>) – The text to be printed.</td>
2611 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">The colored text.</td>
2613 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str</td>
2619 <dl class="function">
2620 <dt id="src.printcolors.printcHighlight">
2621 <code class="descclassname">src.printcolors.</code><code class="descname">printcHighlight</code><span class="sig-paren">(</span><em>txt</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/printcolors.html#printcHighlight"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.printcolors.printcHighlight" title="Permalink to this definition">¶</a></dt>
2622 <dd><p>print a text highlight color</p>
2623 <table class="docutils field-list" frame="void" rules="none">
2624 <col class="field-name" />
2625 <col class="field-body" />
2626 <tbody valign="top">
2627 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>txt</em>) – The text to be printed.</td>
2629 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">The colored text.</td>
2631 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str</td>
2637 <dl class="function">
2638 <dt id="src.printcolors.printcInfo">
2639 <code class="descclassname">src.printcolors.</code><code class="descname">printcInfo</code><span class="sig-paren">(</span><em>txt</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/printcolors.html#printcInfo"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.printcolors.printcInfo" title="Permalink to this definition">¶</a></dt>
2640 <dd><p>print a text info color</p>
2641 <table class="docutils field-list" frame="void" rules="none">
2642 <col class="field-name" />
2643 <col class="field-body" />
2644 <tbody valign="top">
2645 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>txt</em>) – The text to be printed.</td>
2647 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">The colored text.</td>
2649 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str</td>
2655 <dl class="function">
2656 <dt id="src.printcolors.printcLabel">
2657 <code class="descclassname">src.printcolors.</code><code class="descname">printcLabel</code><span class="sig-paren">(</span><em>txt</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/printcolors.html#printcLabel"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.printcolors.printcLabel" title="Permalink to this definition">¶</a></dt>
2658 <dd><p>print a text label color</p>
2659 <table class="docutils field-list" frame="void" rules="none">
2660 <col class="field-name" />
2661 <col class="field-body" />
2662 <tbody valign="top">
2663 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>txt</em>) – The text to be printed.</td>
2665 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">The colored text.</td>
2667 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str</td>
2673 <dl class="function">
2674 <dt id="src.printcolors.printcSuccess">
2675 <code class="descclassname">src.printcolors.</code><code class="descname">printcSuccess</code><span class="sig-paren">(</span><em>txt</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/printcolors.html#printcSuccess"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.printcolors.printcSuccess" title="Permalink to this definition">¶</a></dt>
2676 <dd><p>print a text success color</p>
2677 <table class="docutils field-list" frame="void" rules="none">
2678 <col class="field-name" />
2679 <col class="field-body" />
2680 <tbody valign="top">
2681 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>txt</em>) – The text to be printed.</td>
2683 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">The colored text.</td>
2685 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str</td>
2691 <dl class="function">
2692 <dt id="src.printcolors.printcWarning">
2693 <code class="descclassname">src.printcolors.</code><code class="descname">printcWarning</code><span class="sig-paren">(</span><em>txt</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/printcolors.html#printcWarning"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.printcolors.printcWarning" title="Permalink to this definition">¶</a></dt>
2694 <dd><p>print a text warning color</p>
2695 <table class="docutils field-list" frame="void" rules="none">
2696 <col class="field-name" />
2697 <col class="field-body" />
2698 <tbody valign="top">
2699 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>txt</em>) – The text to be printed.</td>
2701 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">The colored text.</td>
2703 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str</td>
2710 <div class="section" id="module-src.product">
2711 <span id="src-product-module"></span><h2>src.product module<a class="headerlink" href="#module-src.product" title="Permalink to this headline">¶</a></h2>
2712 <p>In this file are implemented the methods
2713 relative to the product notion of salomeTools</p>
2714 <dl class="function">
2715 <dt id="src.product.check_config_exists">
2716 <code class="descclassname">src.product.</code><code class="descname">check_config_exists</code><span class="sig-paren">(</span><em>config</em>, <em>prod_dir</em>, <em>prod_info</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/product.html#check_config_exists"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.product.check_config_exists" title="Permalink to this definition">¶</a></dt>
2717 <dd><p>Verify that the installation directory of a product in a base exists
2718 Check all the config-<i> directory and verify the sat-config.pyconf file
2720 <table class="docutils field-list" frame="void" rules="none">
2721 <col class="field-name" />
2722 <col class="field-body" />
2723 <tbody valign="top">
2724 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
2725 <li><strong>Config</strong> (<em>product_info</em>) – The global configuration</li>
2726 <li><strong>str</strong> (<em>prod_dir</em>) – The product installation directory path
2727 (without config-<i>)</li>
2728 <li><strong>Config</strong> – The configuration specific to
2733 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">True or false is the installation is found or not
2734 and if it is found, the path of the found installation</p>
2737 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">(boolean, str)</p>
2744 <dl class="function">
2745 <dt id="src.product.check_installation">
2746 <code class="descclassname">src.product.</code><code class="descname">check_installation</code><span class="sig-paren">(</span><em>product_info</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/product.html#check_installation"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.product.check_installation" title="Permalink to this definition">¶</a></dt>
2747 <dd><p>Verify if a product is well installed. Checks install directory presence
2748 and some additional files if it is defined in the config</p>
2749 <table class="docutils field-list" frame="void" rules="none">
2750 <col class="field-name" />
2751 <col class="field-body" />
2752 <tbody valign="top">
2753 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Config</strong> (<em>product_info</em>) – The configuration specific to
2756 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">True if it is well installed</td>
2758 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">boolean</td>
2764 <dl class="function">
2765 <dt id="src.product.check_source">
2766 <code class="descclassname">src.product.</code><code class="descname">check_source</code><span class="sig-paren">(</span><em>product_info</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/product.html#check_source"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.product.check_source" title="Permalink to this definition">¶</a></dt>
2767 <dd><p>Verify if a sources of product is preset. Checks source directory presence</p>
2768 <table class="docutils field-list" frame="void" rules="none">
2769 <col class="field-name" />
2770 <col class="field-body" />
2771 <tbody valign="top">
2772 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Config</strong> (<em>product_info</em>) – The configuration specific to
2775 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">True if it is well installed</td>
2777 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">boolean</td>
2783 <dl class="function">
2784 <dt id="src.product.get_base_install_dir">
2785 <code class="descclassname">src.product.</code><code class="descname">get_base_install_dir</code><span class="sig-paren">(</span><em>config</em>, <em>prod_info</em>, <em>version</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/product.html#get_base_install_dir"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.product.get_base_install_dir" title="Permalink to this definition">¶</a></dt>
2786 <dd><p>Compute the installation directory of a product in base</p>
2787 <table class="docutils field-list" frame="void" rules="none">
2788 <col class="field-name" />
2789 <col class="field-body" />
2790 <tbody valign="top">
2791 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
2792 <li><strong>Config</strong> (<em>product_info</em>) – The global configuration</li>
2793 <li><strong>Config</strong> – The configuration specific to
2795 <li><strong>str</strong> (<em>version</em>) – The version of the product</li>
2799 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">The path of the product installation</p>
2802 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">str</p>
2809 <dl class="function">
2810 <dt id="src.product.get_install_dir">
2811 <code class="descclassname">src.product.</code><code class="descname">get_install_dir</code><span class="sig-paren">(</span><em>config</em>, <em>base</em>, <em>version</em>, <em>prod_info</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/product.html#get_install_dir"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.product.get_install_dir" title="Permalink to this definition">¶</a></dt>
2812 <dd><p>Compute the installation directory of a given product</p>
2813 <table class="docutils field-list" frame="void" rules="none">
2814 <col class="field-name" />
2815 <col class="field-body" />
2816 <tbody valign="top">
2817 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
2818 <li><strong>Config</strong> (<em>product_info</em>) – The global configuration</li>
2819 <li><strong>str</strong> (<em>version</em>) – This corresponds to the value given by user in its
2820 application.pyconf for the specific product. If “yes”, the
2821 user wants the product to be in base. If “no”, he wants the
2822 product to be in the application workdir</li>
2823 <li><strong>str</strong> – The version of the product</li>
2824 <li><strong>Config</strong> – The configuration specific to
2829 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">The path of the product installation</p>
2832 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">str</p>
2839 <dl class="function">
2840 <dt id="src.product.get_product_components">
2841 <code class="descclassname">src.product.</code><code class="descname">get_product_components</code><span class="sig-paren">(</span><em>product_info</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/product.html#get_product_components"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.product.get_product_components" title="Permalink to this definition">¶</a></dt>
2842 <dd><p>Get the component list to generate with the product</p>
2843 <table class="docutils field-list" frame="void" rules="none">
2844 <col class="field-name" />
2845 <col class="field-body" />
2846 <tbody valign="top">
2847 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Config</strong> (<em>product_info</em>) – The configuration specific to
2850 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">The list of names of the components</td>
2852 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">List</td>
2858 <dl class="function">
2859 <dt id="src.product.get_product_config">
2860 <code class="descclassname">src.product.</code><code class="descname">get_product_config</code><span class="sig-paren">(</span><em>config</em>, <em>product_name</em>, <em>with_install_dir=True</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/product.html#get_product_config"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.product.get_product_config" title="Permalink to this definition">¶</a></dt>
2861 <dd><p>Get the specific configuration of a product from the global configuration</p>
2862 <table class="docutils field-list" frame="void" rules="none">
2863 <col class="field-name" />
2864 <col class="field-body" />
2865 <tbody valign="top">
2866 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
2867 <li><strong>Config</strong> (<em>config</em>) – The global configuration</li>
2868 <li><strong>str</strong> (<em>product_name</em>) – The name of the product</li>
2869 <li><strong>boolean</strong> (<em>with_install_dir</em>) – If false, do not provide an install
2870 directory (at false only for internal use
2871 of the function check_config_exists)</li>
2875 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">the specific configuration of the product</p>
2878 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference internal" href="#src.pyconf.Config" title="src.pyconf.Config">Config</a></p>
2885 <dl class="function">
2886 <dt id="src.product.get_product_dependencies">
2887 <code class="descclassname">src.product.</code><code class="descname">get_product_dependencies</code><span class="sig-paren">(</span><em>config</em>, <em>product_info</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/product.html#get_product_dependencies"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.product.get_product_dependencies" title="Permalink to this definition">¶</a></dt>
2888 <dd><p>Get recursively the list of products that are
2889 in the product_info dependencies</p>
2890 <table class="docutils field-list" frame="void" rules="none">
2891 <col class="field-name" />
2892 <col class="field-body" />
2893 <tbody valign="top">
2894 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
2895 <li><strong>Config</strong> (<em>product_info</em>) – The global configuration</li>
2896 <li><strong>Config</strong> – The configuration specific to
2901 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">the list of products in dependence</p>
2904 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">list</p>
2911 <dl class="function">
2912 <dt id="src.product.get_product_section">
2913 <code class="descclassname">src.product.</code><code class="descname">get_product_section</code><span class="sig-paren">(</span><em>config</em>, <em>product_name</em>, <em>version</em>, <em>section=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/product.html#get_product_section"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.product.get_product_section" title="Permalink to this definition">¶</a></dt>
2914 <dd><p>Get the product description from the configuration</p>
2915 <table class="docutils field-list" frame="void" rules="none">
2916 <col class="field-name" />
2917 <col class="field-body" />
2918 <tbody valign="top">
2919 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
2920 <li><strong>Config</strong> (<em>config</em>) – The global configuration</li>
2921 <li><strong>str</strong> (<em>section</em>) – The product name</li>
2922 <li><strong>str</strong> – The version of the product</li>
2923 <li><strong>str</strong> – The searched section (if not None, the section is
2924 explicitly given</li>
2928 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">The product description</p>
2931 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference internal" href="#src.pyconf.Config" title="src.pyconf.Config">Config</a></p>
2938 <dl class="function">
2939 <dt id="src.product.get_products_infos">
2940 <code class="descclassname">src.product.</code><code class="descname">get_products_infos</code><span class="sig-paren">(</span><em>lproducts</em>, <em>config</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/product.html#get_products_infos"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.product.get_products_infos" title="Permalink to this definition">¶</a></dt>
2941 <dd><p>Get the specific configuration of a list of products</p>
2942 <table class="docutils field-list" frame="void" rules="none">
2943 <col class="field-name" />
2944 <col class="field-body" />
2945 <tbody valign="top">
2946 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
2947 <li><strong>List</strong> (<em>lproducts</em>) – The list of product names</li>
2948 <li><strong>Config</strong> (<em>config</em>) – The global configuration</li>
2952 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">the list of tuples
2953 (product name, specific configuration of the product)</p>
2956 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">[(str, <a class="reference internal" href="#src.pyconf.Config" title="src.pyconf.Config">Config</a>)]</p>
2963 <dl class="function">
2964 <dt id="src.product.product_compiles">
2965 <code class="descclassname">src.product.</code><code class="descname">product_compiles</code><span class="sig-paren">(</span><em>product_info</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/product.html#product_compiles"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.product.product_compiles" title="Permalink to this definition">¶</a></dt>
2966 <dd><p>Know if a product compiles or not
2967 (some products do not have a compilation procedure)</p>
2968 <table class="docutils field-list" frame="void" rules="none">
2969 <col class="field-name" />
2970 <col class="field-body" />
2971 <tbody valign="top">
2972 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Config</strong> (<em>product_info</em>) – The configuration specific to
2975 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">True if the product compiles, else False</td>
2977 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">boolean</td>
2983 <dl class="function">
2984 <dt id="src.product.product_has_env_script">
2985 <code class="descclassname">src.product.</code><code class="descname">product_has_env_script</code><span class="sig-paren">(</span><em>product_info</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/product.html#product_has_env_script"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.product.product_has_env_script" title="Permalink to this definition">¶</a></dt>
2986 <dd><p>Know if a product has an environment script</p>
2987 <table class="docutils field-list" frame="void" rules="none">
2988 <col class="field-name" />
2989 <col class="field-body" />
2990 <tbody valign="top">
2991 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Config</strong> (<em>product_info</em>) – The configuration specific to
2994 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">True if the product it has an environment script, else False</td>
2996 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">boolean</td>
3002 <dl class="function">
3003 <dt id="src.product.product_has_logo">
3004 <code class="descclassname">src.product.</code><code class="descname">product_has_logo</code><span class="sig-paren">(</span><em>product_info</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/product.html#product_has_logo"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.product.product_has_logo" title="Permalink to this definition">¶</a></dt>
3005 <dd><p>Know if a product has a logo (YACSGEN generate)</p>
3006 <table class="docutils field-list" frame="void" rules="none">
3007 <col class="field-name" />
3008 <col class="field-body" />
3009 <tbody valign="top">
3010 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Config</strong> (<em>product_info</em>) – The configuration specific to
3013 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">The path of the logo if the product has a logo, else False</td>
3015 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">Str</td>
3021 <dl class="function">
3022 <dt id="src.product.product_has_patches">
3023 <code class="descclassname">src.product.</code><code class="descname">product_has_patches</code><span class="sig-paren">(</span><em>product_info</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/product.html#product_has_patches"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.product.product_has_patches" title="Permalink to this definition">¶</a></dt>
3024 <dd><p>Know if a product has one or more patches</p>
3025 <table class="docutils field-list" frame="void" rules="none">
3026 <col class="field-name" />
3027 <col class="field-body" />
3028 <tbody valign="top">
3029 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Config</strong> (<em>product_info</em>) – The configuration specific to
3032 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">True if the product has one or more patches</td>
3034 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">boolean</td>
3040 <dl class="function">
3041 <dt id="src.product.product_has_salome_gui">
3042 <code class="descclassname">src.product.</code><code class="descname">product_has_salome_gui</code><span class="sig-paren">(</span><em>product_info</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/product.html#product_has_salome_gui"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.product.product_has_salome_gui" title="Permalink to this definition">¶</a></dt>
3043 <dd><p>Know if a product has a SALOME gui</p>
3044 <table class="docutils field-list" frame="void" rules="none">
3045 <col class="field-name" />
3046 <col class="field-body" />
3047 <tbody valign="top">
3048 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Config</strong> (<em>product_info</em>) – The configuration specific to
3051 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">True if the product has a SALOME gui, else False</td>
3053 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">Boolean</td>
3059 <dl class="function">
3060 <dt id="src.product.product_has_script">
3061 <code class="descclassname">src.product.</code><code class="descname">product_has_script</code><span class="sig-paren">(</span><em>product_info</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/product.html#product_has_script"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.product.product_has_script" title="Permalink to this definition">¶</a></dt>
3062 <dd><p>Know if a product has a compilation script</p>
3063 <table class="docutils field-list" frame="void" rules="none">
3064 <col class="field-name" />
3065 <col class="field-body" />
3066 <tbody valign="top">
3067 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Config</strong> (<em>product_info</em>) – The configuration specific to
3070 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">True if the product it has a compilation script, else False</td>
3072 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">boolean</td>
3078 <dl class="function">
3079 <dt id="src.product.product_is_autotools">
3080 <code class="descclassname">src.product.</code><code class="descname">product_is_autotools</code><span class="sig-paren">(</span><em>product_info</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/product.html#product_is_autotools"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.product.product_is_autotools" title="Permalink to this definition">¶</a></dt>
3081 <dd><p>Know if a product is compiled using the autotools</p>
3082 <table class="docutils field-list" frame="void" rules="none">
3083 <col class="field-name" />
3084 <col class="field-body" />
3085 <tbody valign="top">
3086 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Config</strong> (<em>product_info</em>) – The configuration specific to
3089 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">True if the product is autotools, else False</td>
3091 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">boolean</td>
3097 <dl class="function">
3098 <dt id="src.product.product_is_cmake">
3099 <code class="descclassname">src.product.</code><code class="descname">product_is_cmake</code><span class="sig-paren">(</span><em>product_info</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/product.html#product_is_cmake"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.product.product_is_cmake" title="Permalink to this definition">¶</a></dt>
3100 <dd><p>Know if a product is compiled using the cmake</p>
3101 <table class="docutils field-list" frame="void" rules="none">
3102 <col class="field-name" />
3103 <col class="field-body" />
3104 <tbody valign="top">
3105 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Config</strong> (<em>product_info</em>) – The configuration specific to
3108 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">True if the product is cmake, else False</td>
3110 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">boolean</td>
3116 <dl class="function">
3117 <dt id="src.product.product_is_cpp">
3118 <code class="descclassname">src.product.</code><code class="descname">product_is_cpp</code><span class="sig-paren">(</span><em>product_info</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/product.html#product_is_cpp"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.product.product_is_cpp" title="Permalink to this definition">¶</a></dt>
3119 <dd><p>Know if a product is cpp</p>
3120 <table class="docutils field-list" frame="void" rules="none">
3121 <col class="field-name" />
3122 <col class="field-body" />
3123 <tbody valign="top">
3124 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Config</strong> (<em>product_info</em>) – The configuration specific to
3127 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">True if the product is a cpp, else False</td>
3129 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">boolean</td>
3135 <dl class="function">
3136 <dt id="src.product.product_is_debug">
3137 <code class="descclassname">src.product.</code><code class="descname">product_is_debug</code><span class="sig-paren">(</span><em>product_info</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/product.html#product_is_debug"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.product.product_is_debug" title="Permalink to this definition">¶</a></dt>
3138 <dd><p>Know if a product is in debug mode</p>
3139 <table class="docutils field-list" frame="void" rules="none">
3140 <col class="field-name" />
3141 <col class="field-body" />
3142 <tbody valign="top">
3143 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Config</strong> (<em>product_info</em>) – The configuration specific to
3146 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">True if the product is in debug mode, else False</td>
3148 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">boolean</td>
3154 <dl class="function">
3155 <dt id="src.product.product_is_dev">
3156 <code class="descclassname">src.product.</code><code class="descname">product_is_dev</code><span class="sig-paren">(</span><em>product_info</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/product.html#product_is_dev"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.product.product_is_dev" title="Permalink to this definition">¶</a></dt>
3157 <dd><p>Know if a product is in dev mode</p>
3158 <table class="docutils field-list" frame="void" rules="none">
3159 <col class="field-name" />
3160 <col class="field-body" />
3161 <tbody valign="top">
3162 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Config</strong> (<em>product_info</em>) – The configuration specific to
3165 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">True if the product is in dev mode, else False</td>
3167 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">boolean</td>
3173 <dl class="function">
3174 <dt id="src.product.product_is_fixed">
3175 <code class="descclassname">src.product.</code><code class="descname">product_is_fixed</code><span class="sig-paren">(</span><em>product_info</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/product.html#product_is_fixed"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.product.product_is_fixed" title="Permalink to this definition">¶</a></dt>
3176 <dd><p>Know if a product is fixed</p>
3177 <table class="docutils field-list" frame="void" rules="none">
3178 <col class="field-name" />
3179 <col class="field-body" />
3180 <tbody valign="top">
3181 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Config</strong> (<em>product_info</em>) – The configuration specific to
3184 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">True if the product is fixed, else False</td>
3186 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">boolean</td>
3192 <dl class="function">
3193 <dt id="src.product.product_is_generated">
3194 <code class="descclassname">src.product.</code><code class="descname">product_is_generated</code><span class="sig-paren">(</span><em>product_info</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/product.html#product_is_generated"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.product.product_is_generated" title="Permalink to this definition">¶</a></dt>
3195 <dd><p>Know if a product is generated (YACSGEN)</p>
3196 <table class="docutils field-list" frame="void" rules="none">
3197 <col class="field-name" />
3198 <col class="field-body" />
3199 <tbody valign="top">
3200 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Config</strong> (<em>product_info</em>) – The configuration specific to
3203 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">True if the product is generated</td>
3205 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">boolean</td>
3211 <dl class="function">
3212 <dt id="src.product.product_is_mpi">
3213 <code class="descclassname">src.product.</code><code class="descname">product_is_mpi</code><span class="sig-paren">(</span><em>product_info</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/product.html#product_is_mpi"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.product.product_is_mpi" title="Permalink to this definition">¶</a></dt>
3214 <dd><p>Know if a product has openmpi in its dependencies</p>
3215 <table class="docutils field-list" frame="void" rules="none">
3216 <col class="field-name" />
3217 <col class="field-body" />
3218 <tbody valign="top">
3219 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Config</strong> (<em>product_info</em>) – The configuration specific to
3222 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">True if the product has openmpi inits dependencies</td>
3224 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">boolean</td>
3230 <dl class="function">
3231 <dt id="src.product.product_is_native">
3232 <code class="descclassname">src.product.</code><code class="descname">product_is_native</code><span class="sig-paren">(</span><em>product_info</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/product.html#product_is_native"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.product.product_is_native" title="Permalink to this definition">¶</a></dt>
3233 <dd><p>Know if a product is native</p>
3234 <table class="docutils field-list" frame="void" rules="none">
3235 <col class="field-name" />
3236 <col class="field-body" />
3237 <tbody valign="top">
3238 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Config</strong> (<em>product_info</em>) – The configuration specific to
3241 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">True if the product is native, else False</td>
3243 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">boolean</td>
3249 <dl class="function">
3250 <dt id="src.product.product_is_salome">
3251 <code class="descclassname">src.product.</code><code class="descname">product_is_salome</code><span class="sig-paren">(</span><em>product_info</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/product.html#product_is_salome"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.product.product_is_salome" title="Permalink to this definition">¶</a></dt>
3252 <dd><p>Know if a product is a SALOME module</p>
3253 <table class="docutils field-list" frame="void" rules="none">
3254 <col class="field-name" />
3255 <col class="field-body" />
3256 <tbody valign="top">
3257 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Config</strong> (<em>product_info</em>) – The configuration specific to
3260 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">True if the product is a SALOME module, else False</td>
3262 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">boolean</td>
3268 <dl class="function">
3269 <dt id="src.product.product_is_smesh_plugin">
3270 <code class="descclassname">src.product.</code><code class="descname">product_is_smesh_plugin</code><span class="sig-paren">(</span><em>product_info</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/product.html#product_is_smesh_plugin"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.product.product_is_smesh_plugin" title="Permalink to this definition">¶</a></dt>
3271 <dd><p>Know if a product is a SMESH plugin</p>
3272 <table class="docutils field-list" frame="void" rules="none">
3273 <col class="field-name" />
3274 <col class="field-body" />
3275 <tbody valign="top">
3276 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Config</strong> (<em>product_info</em>) – The configuration specific to
3279 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">True if the product is a SMESH plugin, else False</td>
3281 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">boolean</td>
3287 <dl class="function">
3288 <dt id="src.product.product_is_vcs">
3289 <code class="descclassname">src.product.</code><code class="descname">product_is_vcs</code><span class="sig-paren">(</span><em>product_info</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/product.html#product_is_vcs"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.product.product_is_vcs" title="Permalink to this definition">¶</a></dt>
3290 <dd><p>Know if a product is download using git, svn or cvs (not archive)</p>
3291 <table class="docutils field-list" frame="void" rules="none">
3292 <col class="field-name" />
3293 <col class="field-body" />
3294 <tbody valign="top">
3295 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Config</strong> (<em>product_info</em>) – The configuration specific to
3298 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">True if the product is vcs, else False</td>
3300 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">boolean</td>
3306 <dl class="function">
3307 <dt id="src.product.product_is_verbose">
3308 <code class="descclassname">src.product.</code><code class="descname">product_is_verbose</code><span class="sig-paren">(</span><em>product_info</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/product.html#product_is_verbose"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.product.product_is_verbose" title="Permalink to this definition">¶</a></dt>
3309 <dd><p>Know if a product is in verbose mode</p>
3310 <table class="docutils field-list" frame="void" rules="none">
3311 <col class="field-name" />
3312 <col class="field-body" />
3313 <tbody valign="top">
3314 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Config</strong> (<em>product_info</em>) – The configuration specific to
3317 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">True if the product is in verbose mode, else False</td>
3319 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">boolean</td>
3326 <div class="section" id="module-src.pyconf">
3327 <span id="src-pyconf-module"></span><h2>src.pyconf module<a class="headerlink" href="#module-src.pyconf" title="Permalink to this headline">¶</a></h2>
3328 <p>This is a configuration module for Python.</p>
3329 <p>This module should work under Python versions >= 2.2, and cannot be used with
3330 earlier versions since it uses new-style classes.</p>
3331 <p>Development and testing has only been carried out (so far) on Python 2.3.4 and
3332 Python 2.4.2. See the test module (test_config.py) included in the
3333 U{distribution<<a class="reference external" href="http://www.red-dove.com/python_config">http://www.red-dove.com/python_config</a>.html|_blank>} (follow the
3335 <p>A simple example - with the example configuration file:</p>
3336 <div class="highlight-default notranslate"><div class="highlight"><pre><span></span>messages:
3339 stream : `sys.stderr`
3340 message: 'Welcome'
3341 name: 'Harry'
3344 stream : `sys.stdout`
3345 message: 'Welkom'
3346 name: 'Ruud'
3349 stream : $messages[0].stream
3350 message: 'Bienvenue'
3356 <p>a program to read the configuration would be:</p>
3357 <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">config</span> <span class="k">import</span> <span class="n">Config</span>
3359 <span class="n">f</span> <span class="o">=</span> <span class="n">file</span><span class="p">(</span><span class="s1">'simple.cfg'</span><span class="p">)</span>
3360 <span class="n">cfg</span> <span class="o">=</span> <span class="n">Config</span><span class="p">(</span><span class="n">f</span><span class="p">)</span>
3361 <span class="k">for</span> <span class="n">m</span> <span class="ow">in</span> <span class="n">cfg</span><span class="o">.</span><span class="n">messages</span><span class="p">:</span>
3362 <span class="n">s</span> <span class="o">=</span> <span class="s1">'</span><span class="si">%s</span><span class="s1">, </span><span class="si">%s</span><span class="s1">'</span> <span class="o">%</span> <span class="p">(</span><span class="n">m</span><span class="o">.</span><span class="n">message</span><span class="p">,</span> <span class="n">m</span><span class="o">.</span><span class="n">name</span><span class="p">)</span>
3363 <span class="k">try</span><span class="p">:</span>
3364 <span class="nb">print</span> <span class="o">>></span> <span class="n">m</span><span class="o">.</span><span class="n">stream</span><span class="p">,</span> <span class="n">s</span>
3365 <span class="k">except</span> <span class="ne">IOError</span><span class="p">,</span> <span class="n">e</span><span class="p">:</span>
3366 <span class="nb">print</span> <span class="n">e</span>
3369 <p>which, when run, would yield the console output:</p>
3370 <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">Welcome</span><span class="p">,</span> <span class="n">Harry</span>
3371 <span class="n">Welkom</span><span class="p">,</span> <span class="n">Ruud</span>
3372 <span class="n">Bienvenue</span><span class="p">,</span> <span class="n">Yves</span>
3375 <p>See U{this tutorial<<a class="reference external" href="http://www.red-dove.com/python_config">http://www.red-dove.com/python_config</a>.html|_blank>} for more
3377 <p>#modified for salomeTools
3378 @version: 0.3.7.1</p>
3379 <p>@author: Vinay Sajip</p>
3380 <p>@copyright: Copyright (C) 2004-2007 Vinay Sajip. All Rights Reserved.</p>
3381 <p>@var streamOpener: The default stream opener. This is a factory function which
3382 takes a string (e.g. filename) and returns a stream suitable for reading. If
3383 unable to open the stream, an IOError exception should be thrown.</p>
3384 <p>The default value of this variable is L{defaultStreamOpener}. For an example
3385 of how it’s used, see test_config.py (search for streamOpener).</p>
3387 <dt id="src.pyconf.Config">
3388 <em class="property">class </em><code class="descclassname">src.pyconf.</code><code class="descname">Config</code><span class="sig-paren">(</span><em>streamOrFile=None</em>, <em>parent=None</em>, <em>PWD=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#Config"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.Config" title="Permalink to this definition">¶</a></dt>
3389 <dd><p>Bases: <a class="reference internal" href="#src.pyconf.Mapping" title="src.pyconf.Mapping"><code class="xref py py-class docutils literal notranslate"><span class="pre">src.pyconf.Mapping</span></code></a></p>
3390 <p>This class represents a configuration, and is the only one which clients
3391 need to interface to, under normal circumstances.</p>
3393 <dt id="src.pyconf.Config.Namespace">
3394 <em class="property">class </em><code class="descname">Namespace</code><a class="reference internal" href="../../_modules/src/pyconf.html#Config.Namespace"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.Config.Namespace" title="Permalink to this definition">¶</a></dt>
3395 <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
3396 <p>This internal class is used for implementing default namespaces.</p>
3397 <p>An instance acts as a namespace.</p>
3401 <dt id="src.pyconf.Config.addNamespace">
3402 <code class="descname">addNamespace</code><span class="sig-paren">(</span><em>ns</em>, <em>name=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#Config.addNamespace"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.Config.addNamespace" title="Permalink to this definition">¶</a></dt>
3403 <dd><p>Add a namespace to this configuration which can be used to evaluate
3404 (resolve) dotted-identifier expressions.
3405 @param ns: The namespace to be added.
3406 @type ns: A module or other namespace suitable for passing as an
3408 @param name: A name for the namespace, which, if specified, provides
3409 an additional level of indirection.
3410 @type name: str</p>
3414 <dt id="src.pyconf.Config.getByPath">
3415 <code class="descname">getByPath</code><span class="sig-paren">(</span><em>path</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#Config.getByPath"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.Config.getByPath" title="Permalink to this definition">¶</a></dt>
3416 <dd><p>Obtain a value in the configuration via its path.
3417 @param path: The path of the required value
3419 @return the value at the specified path.
3421 @raise ConfigError: If the path is invalid</p>
3425 <dt id="src.pyconf.Config.load">
3426 <code class="descname">load</code><span class="sig-paren">(</span><em>stream</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#Config.load"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.Config.load" title="Permalink to this definition">¶</a></dt>
3427 <dd><p>Load the configuration from the specified stream. Multiple streams can
3428 be used to populate the same instance, as long as there are no
3429 clashing keys. The stream is closed.
3430 @param stream: A stream from which the configuration is read.
3431 @type stream: A read-only stream (file-like object).
3432 @raise ConfigError: if keys in the loaded configuration clash with
3434 @raise ConfigFormatError: if there is a syntax error in the stream.</p>
3438 <dt id="src.pyconf.Config.removeNamespace">
3439 <code class="descname">removeNamespace</code><span class="sig-paren">(</span><em>ns</em>, <em>name=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#Config.removeNamespace"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.Config.removeNamespace" title="Permalink to this definition">¶</a></dt>
3440 <dd><p>Remove a namespace added with L{addNamespace}.
3441 @param ns: The namespace to be removed.
3442 @param name: The name which was specified when L{addNamespace} was
3444 @type name: str</p>
3449 <dl class="exception">
3450 <dt id="src.pyconf.ConfigError">
3451 <em class="property">exception </em><code class="descclassname">src.pyconf.</code><code class="descname">ConfigError</code><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigError"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigError" title="Permalink to this definition">¶</a></dt>
3452 <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">exceptions.Exception</span></code></p>
3453 <p>This is the base class of exceptions raised by this module.</p>
3456 <dl class="exception">
3457 <dt id="src.pyconf.ConfigFormatError">
3458 <em class="property">exception </em><code class="descclassname">src.pyconf.</code><code class="descname">ConfigFormatError</code><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigFormatError"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigFormatError" title="Permalink to this definition">¶</a></dt>
3459 <dd><p>Bases: <a class="reference internal" href="#src.pyconf.ConfigError" title="src.pyconf.ConfigError"><code class="xref py py-class docutils literal notranslate"><span class="pre">src.pyconf.ConfigError</span></code></a></p>
3460 <p>This is the base class of exceptions raised due to syntax errors in
3465 <dt id="src.pyconf.ConfigInputStream">
3466 <em class="property">class </em><code class="descclassname">src.pyconf.</code><code class="descname">ConfigInputStream</code><span class="sig-paren">(</span><em>stream</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigInputStream"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigInputStream" title="Permalink to this definition">¶</a></dt>
3467 <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
3468 <p>An input stream which can read either ANSI files with default encoding
3469 or Unicode files with BOMs.</p>
3470 <p>Handles UTF-8, UTF-16LE, UTF-16BE. Could handle UTF-32 if Python had
3471 built-in support.</p>
3473 <dt id="src.pyconf.ConfigInputStream.close">
3474 <code class="descname">close</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigInputStream.close"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigInputStream.close" title="Permalink to this definition">¶</a></dt>
3478 <dt id="src.pyconf.ConfigInputStream.read">
3479 <code class="descname">read</code><span class="sig-paren">(</span><em>size</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigInputStream.read"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigInputStream.read" title="Permalink to this definition">¶</a></dt>
3483 <dt id="src.pyconf.ConfigInputStream.readline">
3484 <code class="descname">readline</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigInputStream.readline"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigInputStream.readline" title="Permalink to this definition">¶</a></dt>
3490 <dt id="src.pyconf.ConfigList">
3491 <em class="property">class </em><code class="descclassname">src.pyconf.</code><code class="descname">ConfigList</code><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigList"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigList" title="Permalink to this definition">¶</a></dt>
3492 <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">list</span></code></p>
3493 <p>This class implements an ordered list of configurations and allows you
3494 to try getting the configuration from each entry in turn, returning
3495 the first successfully obtained value.</p>
3497 <dt id="src.pyconf.ConfigList.getByPath">
3498 <code class="descname">getByPath</code><span class="sig-paren">(</span><em>path</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigList.getByPath"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigList.getByPath" title="Permalink to this definition">¶</a></dt>
3499 <dd><p>Obtain a value from the first configuration in the list which defines
3501 <p>@param path: The path of the value to retrieve.
3503 @return: The value from the earliest configuration in the list which
3506 @raise ConfigError: If no configuration in the list has an entry with
3507 the specified path.</p>
3513 <dt id="src.pyconf.ConfigMerger">
3514 <em class="property">class </em><code class="descclassname">src.pyconf.</code><code class="descname">ConfigMerger</code><span class="sig-paren">(</span><em>resolver=<function defaultMergeResolve></em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigMerger"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigMerger" title="Permalink to this definition">¶</a></dt>
3515 <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
3516 <p>This class is used for merging two configurations. If a key exists in the
3517 merge operand but not the merge target, then the entry is copied from the
3518 merge operand to the merge target. If a key exists in both configurations,
3519 then a resolver (a callable) is called to decide how to handle the
3522 <dt id="src.pyconf.ConfigMerger.handleMismatch">
3523 <code class="descname">handleMismatch</code><span class="sig-paren">(</span><em>obj1</em>, <em>obj2</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigMerger.handleMismatch"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigMerger.handleMismatch" title="Permalink to this definition">¶</a></dt>
3524 <dd><p>Handle a mismatch between two objects.</p>
3525 <p>@param obj1: The object to merge into.
3527 @param obj2: The object to merge.
3528 @type obj2: any</p>
3532 <dt id="src.pyconf.ConfigMerger.merge">
3533 <code class="descname">merge</code><span class="sig-paren">(</span><em>merged</em>, <em>mergee</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigMerger.merge"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigMerger.merge" title="Permalink to this definition">¶</a></dt>
3534 <dd><p>Merge two configurations. The second configuration is unchanged,
3535 and the first is changed to reflect the results of the merge.</p>
3536 <p>@param merged: The configuration to merge into.
3537 @type merged: L{Config}.
3538 @param mergee: The configuration to merge.
3539 @type mergee: L{Config}.</p>
3543 <dt id="src.pyconf.ConfigMerger.mergeMapping">
3544 <code class="descname">mergeMapping</code><span class="sig-paren">(</span><em>map1</em>, <em>map2</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigMerger.mergeMapping"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigMerger.mergeMapping" title="Permalink to this definition">¶</a></dt>
3545 <dd><p>Merge two mappings recursively. The second mapping is unchanged,
3546 and the first is changed to reflect the results of the merge.</p>
3547 <p>@param map1: The mapping to merge into.
3548 @type map1: L{Mapping}.
3549 @param map2: The mapping to merge.
3550 @type map2: L{Mapping}.</p>
3554 <dt id="src.pyconf.ConfigMerger.mergeSequence">
3555 <code class="descname">mergeSequence</code><span class="sig-paren">(</span><em>seq1</em>, <em>seq2</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigMerger.mergeSequence"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigMerger.mergeSequence" title="Permalink to this definition">¶</a></dt>
3556 <dd><p>Merge two sequences. The second sequence is unchanged,
3557 and the first is changed to have the elements of the second
3559 <p>@param seq1: The sequence to merge into.
3560 @type seq1: L{Sequence}.
3561 @param seq2: The sequence to merge.
3562 @type seq2: L{Sequence}.</p>
3566 <dt id="src.pyconf.ConfigMerger.overwriteKeys">
3567 <code class="descname">overwriteKeys</code><span class="sig-paren">(</span><em>map1</em>, <em>seq2</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigMerger.overwriteKeys"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigMerger.overwriteKeys" title="Permalink to this definition">¶</a></dt>
3568 <dd><p>Renint variables. The second mapping is unchanged,
3569 and the first is changed depending the keys of the second mapping.
3570 @param map1: The mapping to reinit keys into.
3571 @type map1: L{Mapping}.
3572 @param map2: The mapping container reinit information.
3573 @type map2: L{Mapping}.</p>
3579 <dt id="src.pyconf.ConfigOutputStream">
3580 <em class="property">class </em><code class="descclassname">src.pyconf.</code><code class="descname">ConfigOutputStream</code><span class="sig-paren">(</span><em>stream</em>, <em>encoding=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigOutputStream"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigOutputStream" title="Permalink to this definition">¶</a></dt>
3581 <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
3582 <p>An output stream which can write either ANSI files with default encoding
3583 or Unicode files with BOMs.</p>
3584 <p>Handles UTF-8, UTF-16LE, UTF-16BE. Could handle UTF-32 if Python had
3585 built-in support.</p>
3587 <dt id="src.pyconf.ConfigOutputStream.close">
3588 <code class="descname">close</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigOutputStream.close"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigOutputStream.close" title="Permalink to this definition">¶</a></dt>
3592 <dt id="src.pyconf.ConfigOutputStream.flush">
3593 <code class="descname">flush</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigOutputStream.flush"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigOutputStream.flush" title="Permalink to this definition">¶</a></dt>
3597 <dt id="src.pyconf.ConfigOutputStream.write">
3598 <code class="descname">write</code><span class="sig-paren">(</span><em>data</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigOutputStream.write"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigOutputStream.write" title="Permalink to this definition">¶</a></dt>
3604 <dt id="src.pyconf.ConfigReader">
3605 <em class="property">class </em><code class="descclassname">src.pyconf.</code><code class="descname">ConfigReader</code><span class="sig-paren">(</span><em>config</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigReader"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigReader" title="Permalink to this definition">¶</a></dt>
3606 <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
3607 <p>This internal class implements a parser for configurations.</p>
3609 <dt id="src.pyconf.ConfigReader.getChar">
3610 <code class="descname">getChar</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigReader.getChar"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigReader.getChar" title="Permalink to this definition">¶</a></dt>
3611 <dd><p>Get the next char from the stream. Update line and column numbers
3613 <p>@return: The next character from the stream.
3618 <dt id="src.pyconf.ConfigReader.getToken">
3619 <code class="descname">getToken</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigReader.getToken"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigReader.getToken" title="Permalink to this definition">¶</a></dt>
3620 <dd><p>Get a token from the stream. String values are returned in a form
3621 where you need to eval() the returned value to get the actual
3622 string. The return value is (token_type, token_value).</p>
3623 <p>Multiline string tokenizing is thanks to David Janes (BlogMatrix)</p>
3624 <p>@return: The next token.
3625 @rtype: A token tuple.</p>
3629 <dt id="src.pyconf.ConfigReader.load">
3630 <code class="descname">load</code><span class="sig-paren">(</span><em>stream</em>, <em>parent=None</em>, <em>suffix=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigReader.load"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigReader.load" title="Permalink to this definition">¶</a></dt>
3631 <dd><p>Load the configuration from the specified stream.</p>
3632 <p>@param stream: A stream from which to load the configuration.
3633 @type stream: A stream (file-like object).
3634 @param parent: The parent of the configuration (to which this reader
3635 belongs) in the hierarchy. Specified when the configuration is
3636 included in another one.
3637 @type parent: A L{Container} instance.
3638 @param suffix: The suffix of this configuration in the parent
3639 configuration. Should be specified whenever the parent is not None.
3640 @raise ConfigError: If parent is specified but suffix is not.
3641 @raise ConfigFormatError: If there are syntax errors in the stream.</p>
3645 <dt id="src.pyconf.ConfigReader.location">
3646 <code class="descname">location</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigReader.location"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigReader.location" title="Permalink to this definition">¶</a></dt>
3647 <dd><p>Return the current location (filename, line, column) in the stream
3649 <p>Used when printing error messages,</p>
3650 <p>@return: A string representing a location in the stream being read.
3655 <dt id="src.pyconf.ConfigReader.match">
3656 <code class="descname">match</code><span class="sig-paren">(</span><em>t</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigReader.match"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigReader.match" title="Permalink to this definition">¶</a></dt>
3657 <dd><p>Ensure that the current token type matches the specified value, and
3658 advance to the next token.</p>
3659 <p>@param t: The token type to match.
3660 @type t: A valid token type.
3661 @return: The token which was last read from the stream before this
3663 @rtype: a token tuple - see L{getToken}.
3664 @raise ConfigFormatError: If the token does not match what’s expected.</p>
3668 <dt id="src.pyconf.ConfigReader.parseFactor">
3669 <code class="descname">parseFactor</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigReader.parseFactor"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigReader.parseFactor" title="Permalink to this definition">¶</a></dt>
3670 <dd><p>Parse a factor in an multiplicative expression (a * b, a / b, a % b)</p>
3671 <p>@return: the parsed factor
3672 @rtype: any scalar
3673 @raise ConfigFormatError: if a syntax error is found.</p>
3677 <dt id="src.pyconf.ConfigReader.parseKeyValuePair">
3678 <code class="descname">parseKeyValuePair</code><span class="sig-paren">(</span><em>parent</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigReader.parseKeyValuePair"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigReader.parseKeyValuePair" title="Permalink to this definition">¶</a></dt>
3679 <dd><p>Parse a key-value pair, and add it to the provided L{Mapping}.</p>
3680 <p>@param parent: The mapping to add entries to.
3681 @type parent: A L{Mapping} instance.
3682 @raise ConfigFormatError: if a syntax error is found.</p>
3686 <dt id="src.pyconf.ConfigReader.parseMapping">
3687 <code class="descname">parseMapping</code><span class="sig-paren">(</span><em>parent</em>, <em>suffix</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigReader.parseMapping"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigReader.parseMapping" title="Permalink to this definition">¶</a></dt>
3688 <dd><p>Parse a mapping.</p>
3689 <p>@param parent: The container to which the mapping will be added.
3690 @type parent: A L{Container} instance.
3691 @param suffix: The suffix for the value.
3692 @type suffix: str
3693 @return: a L{Mapping} instance representing the mapping.
3694 @rtype: L{Mapping}
3695 @raise ConfigFormatError: if a syntax error is found.</p>
3699 <dt id="src.pyconf.ConfigReader.parseMappingBody">
3700 <code class="descname">parseMappingBody</code><span class="sig-paren">(</span><em>parent</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigReader.parseMappingBody"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigReader.parseMappingBody" title="Permalink to this definition">¶</a></dt>
3701 <dd><p>Parse the internals of a mapping, and add entries to the provided
3703 <p>@param parent: The mapping to add entries to.
3704 @type parent: A L{Mapping} instance.</p>
3708 <dt id="src.pyconf.ConfigReader.parseReference">
3709 <code class="descname">parseReference</code><span class="sig-paren">(</span><em>type</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigReader.parseReference"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigReader.parseReference" title="Permalink to this definition">¶</a></dt>
3710 <dd><p>Parse a reference.</p>
3711 <p>@return: the parsed reference
3712 @rtype: L{Reference}
3713 @raise ConfigFormatError: if a syntax error is found.</p>
3717 <dt id="src.pyconf.ConfigReader.parseScalar">
3718 <code class="descname">parseScalar</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigReader.parseScalar"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigReader.parseScalar" title="Permalink to this definition">¶</a></dt>
3719 <dd><p>Parse a scalar - a terminal value such as a string or number, or
3720 an L{Expression} or L{Reference}.</p>
3721 <p>@return: the parsed scalar
3722 @rtype: any scalar
3723 @raise ConfigFormatError: if a syntax error is found.</p>
3727 <dt id="src.pyconf.ConfigReader.parseSequence">
3728 <code class="descname">parseSequence</code><span class="sig-paren">(</span><em>parent</em>, <em>suffix</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigReader.parseSequence"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigReader.parseSequence" title="Permalink to this definition">¶</a></dt>
3729 <dd><p>Parse a sequence.</p>
3730 <p>@param parent: The container to which the sequence will be added.
3731 @type parent: A L{Container} instance.
3732 @param suffix: The suffix for the value.
3733 @type suffix: str
3734 @return: a L{Sequence} instance representing the sequence.
3735 @rtype: L{Sequence}
3736 @raise ConfigFormatError: if a syntax error is found.</p>
3740 <dt id="src.pyconf.ConfigReader.parseSuffix">
3741 <code class="descname">parseSuffix</code><span class="sig-paren">(</span><em>ref</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigReader.parseSuffix"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigReader.parseSuffix" title="Permalink to this definition">¶</a></dt>
3742 <dd><p>Parse a reference suffix.</p>
3743 <p>@param ref: The reference of which this suffix is a part.
3744 @type ref: L{Reference}.
3745 @raise ConfigFormatError: if a syntax error is found.</p>
3749 <dt id="src.pyconf.ConfigReader.parseTerm">
3750 <code class="descname">parseTerm</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigReader.parseTerm"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigReader.parseTerm" title="Permalink to this definition">¶</a></dt>
3751 <dd><p>Parse a term in an additive expression (a + b, a - b)</p>
3752 <p>@return: the parsed term
3753 @rtype: any scalar
3754 @raise ConfigFormatError: if a syntax error is found.</p>
3758 <dt id="src.pyconf.ConfigReader.parseValue">
3759 <code class="descname">parseValue</code><span class="sig-paren">(</span><em>parent</em>, <em>suffix</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigReader.parseValue"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigReader.parseValue" title="Permalink to this definition">¶</a></dt>
3760 <dd><p>Parse a value.</p>
3761 <p>@param parent: The container to which the value will be added.
3762 @type parent: A L{Container} instance.
3763 @param suffix: The suffix for the value.
3764 @type suffix: str
3765 @return: The value
3767 @raise ConfigFormatError: if a syntax error is found.</p>
3771 <dt id="src.pyconf.ConfigReader.setStream">
3772 <code class="descname">setStream</code><span class="sig-paren">(</span><em>stream</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigReader.setStream"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigReader.setStream" title="Permalink to this definition">¶</a></dt>
3773 <dd><p>Set the stream to the specified value, and prepare to read from it.</p>
3774 <p>@param stream: A stream from which to load the configuration.
3775 @type stream: A stream (file-like object).</p>
3780 <dl class="exception">
3781 <dt id="src.pyconf.ConfigResolutionError">
3782 <em class="property">exception </em><code class="descclassname">src.pyconf.</code><code class="descname">ConfigResolutionError</code><a class="reference internal" href="../../_modules/src/pyconf.html#ConfigResolutionError"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.ConfigResolutionError" title="Permalink to this definition">¶</a></dt>
3783 <dd><p>Bases: <a class="reference internal" href="#src.pyconf.ConfigError" title="src.pyconf.ConfigError"><code class="xref py py-class docutils literal notranslate"><span class="pre">src.pyconf.ConfigError</span></code></a></p>
3784 <p>This is the base class of exceptions raised due to semantic errors in
3789 <dt id="src.pyconf.Container">
3790 <em class="property">class </em><code class="descclassname">src.pyconf.</code><code class="descname">Container</code><span class="sig-paren">(</span><em>parent</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#Container"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.Container" title="Permalink to this definition">¶</a></dt>
3791 <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
3792 <p>This internal class is the base class for mappings and sequences.</p>
3793 <p>@ivar path: A string which describes how to get
3794 to this instance from the root of the hierarchy.</p>
3796 <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">a</span><span class="o">.</span><span class="n">list</span><span class="o">.</span><span class="n">of</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="o">.</span><span class="ow">or</span><span class="p">[</span><span class="s1">'more'</span><span class="p">]</span><span class="o">.</span><span class="n">elements</span>
3800 <dt id="src.pyconf.Container.evaluate">
3801 <code class="descname">evaluate</code><span class="sig-paren">(</span><em>item</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#Container.evaluate"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.Container.evaluate" title="Permalink to this definition">¶</a></dt>
3802 <dd><p>Evaluate items which are instances of L{Reference} or L{Expression}.</p>
3803 <p>L{Reference} instances are evaluated using L{Reference.resolve},
3804 and L{Expression} instances are evaluated using
3805 L{Expression.evaluate}.</p>
3806 <p>@param item: The item to be evaluated.
3808 @return: If the item is an instance of L{Reference} or L{Expression},
3809 the evaluated value is returned, otherwise the item is returned
3814 <dt id="src.pyconf.Container.setPath">
3815 <code class="descname">setPath</code><span class="sig-paren">(</span><em>path</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#Container.setPath"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.Container.setPath" title="Permalink to this definition">¶</a></dt>
3816 <dd><p>Set the path for this instance.
3817 @param path: The path - a string which describes how to get
3818 to this instance from the root of the hierarchy.
3819 @type path: str</p>
3823 <dt id="src.pyconf.Container.writeToStream">
3824 <code class="descname">writeToStream</code><span class="sig-paren">(</span><em>stream</em>, <em>indent</em>, <em>container</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#Container.writeToStream"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.Container.writeToStream" title="Permalink to this definition">¶</a></dt>
3825 <dd><p>Write this instance to a stream at the specified indentation level.</p>
3826 <p>Should be redefined in subclasses.</p>
3827 <p>@param stream: The stream to write to
3828 @type stream: A writable stream (file-like object)
3829 @param indent: The indentation level
3830 @type indent: int
3831 @param container: The container of this instance
3832 @type container: L{Container}
3833 @raise NotImplementedError: If a subclass does not override this</p>
3837 <dt id="src.pyconf.Container.writeValue">
3838 <code class="descname">writeValue</code><span class="sig-paren">(</span><em>value</em>, <em>stream</em>, <em>indent</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#Container.writeValue"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.Container.writeValue" title="Permalink to this definition">¶</a></dt>
3844 <dt id="src.pyconf.Expression">
3845 <em class="property">class </em><code class="descclassname">src.pyconf.</code><code class="descname">Expression</code><span class="sig-paren">(</span><em>op</em>, <em>lhs</em>, <em>rhs</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#Expression"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.Expression" title="Permalink to this definition">¶</a></dt>
3846 <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
3847 <p>This internal class implements a value which is obtained by evaluating an expression.</p>
3849 <dt id="src.pyconf.Expression.evaluate">
3850 <code class="descname">evaluate</code><span class="sig-paren">(</span><em>container</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#Expression.evaluate"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.Expression.evaluate" title="Permalink to this definition">¶</a></dt>
3851 <dd><p>Evaluate this instance in the context of a container.</p>
3852 <p>@param container: The container to evaluate in from.
3853 @type container: L{Container}
3854 @return: The evaluated value.
3856 @raise ConfigResolutionError: If evaluation fails.
3857 @raise ZeroDivideError: If division by zero occurs.
3858 @raise TypeError: If the operation is invalid, e.g.
3859 subtracting one string from another.</p>
3865 <dt id="src.pyconf.Mapping">
3866 <em class="property">class </em><code class="descclassname">src.pyconf.</code><code class="descname">Mapping</code><span class="sig-paren">(</span><em>parent=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#Mapping"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.Mapping" title="Permalink to this definition">¶</a></dt>
3867 <dd><p>Bases: <a class="reference internal" href="#src.pyconf.Container" title="src.pyconf.Container"><code class="xref py py-class docutils literal notranslate"><span class="pre">src.pyconf.Container</span></code></a></p>
3868 <p>This internal class implements key-value mappings in configurations.</p>
3870 <dt id="src.pyconf.Mapping.addMapping">
3871 <code class="descname">addMapping</code><span class="sig-paren">(</span><em>key</em>, <em>value</em>, <em>comment</em>, <em>setting=False</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#Mapping.addMapping"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.Mapping.addMapping" title="Permalink to this definition">¶</a></dt>
3872 <dd><p>Add a key-value mapping with a comment.</p>
3873 <p>@param key: The key for the mapping.
3875 @param value: The value for the mapping.
3876 @type value: any
3877 @param comment: The comment for the key (can be None).
3878 @type comment: str
3879 @param setting: If True, ignore clashes. This is set
3880 to true when called from L{__setattr__}.
3881 @raise ConfigFormatError: If an existing key is seen
3882 again and setting is False.</p>
3886 <dt id="src.pyconf.Mapping.get">
3887 <code class="descname">get</code><span class="sig-paren">(</span><em>key</em>, <em>default=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#Mapping.get"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.Mapping.get" title="Permalink to this definition">¶</a></dt>
3888 <dd><p>Allows a dictionary-style get operation.</p>
3892 <dt id="src.pyconf.Mapping.iteritems">
3893 <code class="descname">iteritems</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#Mapping.iteritems"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.Mapping.iteritems" title="Permalink to this definition">¶</a></dt>
3897 <dt id="src.pyconf.Mapping.iterkeys">
3898 <code class="descname">iterkeys</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#Mapping.iterkeys"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.Mapping.iterkeys" title="Permalink to this definition">¶</a></dt>
3902 <dt id="src.pyconf.Mapping.keys">
3903 <code class="descname">keys</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#Mapping.keys"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.Mapping.keys" title="Permalink to this definition">¶</a></dt>
3904 <dd><p>Return the keys in a similar way to a dictionary.</p>
3908 <dt id="src.pyconf.Mapping.writeToStream">
3909 <code class="descname">writeToStream</code><span class="sig-paren">(</span><em>stream</em>, <em>indent</em>, <em>container</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#Mapping.writeToStream"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.Mapping.writeToStream" title="Permalink to this definition">¶</a></dt>
3910 <dd><p>Write this instance to a stream at the specified indentation level.</p>
3911 <p>Should be redefined in subclasses.</p>
3912 <p>@param stream: The stream to write to
3913 @type stream: A writable stream (file-like object)
3914 @param indent: The indentation level
3915 @type indent: int
3916 @param container: The container of this instance
3917 @type container: L{Container}</p>
3923 <dt id="src.pyconf.Reference">
3924 <em class="property">class </em><code class="descclassname">src.pyconf.</code><code class="descname">Reference</code><span class="sig-paren">(</span><em>config</em>, <em>type</em>, <em>ident</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#Reference"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.Reference" title="Permalink to this definition">¶</a></dt>
3925 <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
3926 <p>This internal class implements a value which is a reference to another value.</p>
3928 <dt id="src.pyconf.Reference.addElement">
3929 <code class="descname">addElement</code><span class="sig-paren">(</span><em>type</em>, <em>ident</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#Reference.addElement"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.Reference.addElement" title="Permalink to this definition">¶</a></dt>
3930 <dd><p>Add an element to the reference.</p>
3931 <p>@param type: The type of reference.
3932 @type type: BACKTICK or DOLLAR
3933 @param ident: The identifier which continues the reference.
3934 @type ident: str</p>
3938 <dt id="src.pyconf.Reference.findConfig">
3939 <code class="descname">findConfig</code><span class="sig-paren">(</span><em>container</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#Reference.findConfig"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.Reference.findConfig" title="Permalink to this definition">¶</a></dt>
3940 <dd><p>Find the closest enclosing configuration to the specified container.</p>
3941 <p>@param container: The container to start from.
3942 @type container: L{Container}
3943 @return: The closest enclosing configuration, or None.
3944 @rtype: L{Config}</p>
3948 <dt id="src.pyconf.Reference.resolve">
3949 <code class="descname">resolve</code><span class="sig-paren">(</span><em>container</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#Reference.resolve"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.Reference.resolve" title="Permalink to this definition">¶</a></dt>
3950 <dd><p>Resolve this instance in the context of a container.</p>
3951 <p>@param container: The container to resolve from.
3952 @type container: L{Container}
3953 @return: The resolved value.
3955 @raise ConfigResolutionError: If resolution fails.</p>
3961 <dt id="src.pyconf.Sequence">
3962 <em class="property">class </em><code class="descclassname">src.pyconf.</code><code class="descname">Sequence</code><span class="sig-paren">(</span><em>parent=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#Sequence"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.Sequence" title="Permalink to this definition">¶</a></dt>
3963 <dd><p>Bases: <a class="reference internal" href="#src.pyconf.Container" title="src.pyconf.Container"><code class="xref py py-class docutils literal notranslate"><span class="pre">src.pyconf.Container</span></code></a></p>
3964 <p>This internal class implements a value which is a sequence of other values.</p>
3966 <dt id="src.pyconf.Sequence.SeqIter">
3967 <em class="property">class </em><code class="descname">SeqIter</code><span class="sig-paren">(</span><em>seq</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#Sequence.SeqIter"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.Sequence.SeqIter" title="Permalink to this definition">¶</a></dt>
3968 <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
3969 <p>This internal class implements an iterator for a L{Sequence} instance.</p>
3971 <dt id="src.pyconf.Sequence.SeqIter.next">
3972 <code class="descname">next</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#Sequence.SeqIter.next"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.Sequence.SeqIter.next" title="Permalink to this definition">¶</a></dt>
3978 <dt id="src.pyconf.Sequence.append">
3979 <code class="descname">append</code><span class="sig-paren">(</span><em>item</em>, <em>comment</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#Sequence.append"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.Sequence.append" title="Permalink to this definition">¶</a></dt>
3980 <dd><p>Add an item to the sequence.</p>
3981 <p>@param item: The item to add.
3983 @param comment: A comment for the item.
3984 @type comment: str</p>
3988 <dt id="src.pyconf.Sequence.writeToStream">
3989 <code class="descname">writeToStream</code><span class="sig-paren">(</span><em>stream</em>, <em>indent</em>, <em>container</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#Sequence.writeToStream"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.Sequence.writeToStream" title="Permalink to this definition">¶</a></dt>
3990 <dd><p>Write this instance to a stream at the specified indentation level.</p>
3991 <p>Should be redefined in subclasses.</p>
3992 <p>@param stream: The stream to write to
3993 @type stream: A writable stream (file-like object)
3994 @param indent: The indentation level
3995 @type indent: int
3996 @param container: The container of this instance
3997 @type container: L{Container}</p>
4002 <dl class="function">
4003 <dt id="src.pyconf.deepCopyMapping">
4004 <code class="descclassname">src.pyconf.</code><code class="descname">deepCopyMapping</code><span class="sig-paren">(</span><em>inMapping</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#deepCopyMapping"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.deepCopyMapping" title="Permalink to this definition">¶</a></dt>
4007 <dl class="function">
4008 <dt id="src.pyconf.defaultMergeResolve">
4009 <code class="descclassname">src.pyconf.</code><code class="descname">defaultMergeResolve</code><span class="sig-paren">(</span><em>map1</em>, <em>map2</em>, <em>key</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#defaultMergeResolve"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.defaultMergeResolve" title="Permalink to this definition">¶</a></dt>
4010 <dd><p>A default resolver for merge conflicts.
4011 Returns a string indicating what action to take to resolve the conflict.</p>
4012 <p>@param map1: The map being merged into.
4013 @type map1: L{Mapping}.
4014 @param map2: The map being used as the merge operand.
4015 @type map2: L{Mapping}.
4016 @param key: The key in map2 (which also exists in map1).
4017 @type key: str</p>
4018 <dl class="docutils">
4019 <dt>@return: One of “merge”, “append”, “mismatch” or “overwrite”</dt>
4020 <dd>indicating what action should be taken. This should
4021 be appropriate to the objects being merged - e.g.
4022 there is no point returning “merge” if the two objects
4023 are instances of L{Sequence}.</dd>
4025 <p>@rtype: str</p>
4028 <dl class="function">
4029 <dt id="src.pyconf.defaultStreamOpener">
4030 <code class="descclassname">src.pyconf.</code><code class="descname">defaultStreamOpener</code><span class="sig-paren">(</span><em>name</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#defaultStreamOpener"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.defaultStreamOpener" title="Permalink to this definition">¶</a></dt>
4031 <dd><p>This function returns a read-only stream, given its name. The name passed
4032 in should correspond to an existing stream, otherwise an exception will be
4034 <p>This is the default value of L{streamOpener}; assign your own callable to
4035 streamOpener to return streams based on names. For example, you could use
4036 urllib2.urlopen().</p>
4037 <p>@param name: The name of a stream, most commonly a file name.
4039 @return: A stream with the specified name.
4040 @rtype: A read-only stream (file-like object)</p>
4043 <dl class="function">
4044 <dt id="src.pyconf.isWord">
4045 <code class="descclassname">src.pyconf.</code><code class="descname">isWord</code><span class="sig-paren">(</span><em>s</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#isWord"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.isWord" title="Permalink to this definition">¶</a></dt>
4046 <dd><p>See if a passed-in value is an identifier. If the value passed in is not a
4047 string, False is returned. An identifier consists of alphanumerics or
4048 underscore characters.</p>
4050 <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">isWord</span><span class="p">(</span><span class="s1">'a word'</span><span class="p">)</span> <span class="o">-></span><span class="kc">False</span>
4051 <span class="n">isWord</span><span class="p">(</span><span class="s1">'award'</span><span class="p">)</span> <span class="o">-></span> <span class="kc">True</span>
4052 <span class="n">isWord</span><span class="p">(</span><span class="mi">9</span><span class="p">)</span> <span class="o">-></span> <span class="kc">False</span>
4053 <span class="n">isWord</span><span class="p">(</span><span class="s1">'a_b_c_'</span><span class="p">)</span> <span class="o">-></span><span class="kc">True</span>
4056 <p>@note: isWord(‘9abc’) will return True - not exactly correct, but adequate
4057 for the way it’s used here.</p>
4058 <p>@param s: The name to be tested
4060 @return: True if a word, else False
4061 @rtype: bool</p>
4064 <dl class="function">
4065 <dt id="src.pyconf.makePath">
4066 <code class="descclassname">src.pyconf.</code><code class="descname">makePath</code><span class="sig-paren">(</span><em>prefix</em>, <em>suffix</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#makePath"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.makePath" title="Permalink to this definition">¶</a></dt>
4067 <dd><p>Make a path from a prefix and suffix.</p>
4069 makePath(‘’, ‘suffix’) -> ‘suffix’
4070 makePath(‘prefix’, ‘suffix’) -> ‘prefix.suffix’
4071 makePath(‘prefix’, ‘[1]’) -> ‘prefix[1]’</p>
4072 <p>@param prefix: The prefix to use. If it evaluates as false, the suffix is returned.
4073 @type prefix: str
4074 @param suffix: The suffix to use. It is either an identifier or an index in brackets.
4075 @type suffix: str
4076 @return: The path concatenation of prefix and suffix, with adot if the suffix is not a bracketed index.
4080 <dl class="function">
4081 <dt id="src.pyconf.overwriteMergeResolve">
4082 <code class="descclassname">src.pyconf.</code><code class="descname">overwriteMergeResolve</code><span class="sig-paren">(</span><em>map1</em>, <em>map2</em>, <em>key</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/pyconf.html#overwriteMergeResolve"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.pyconf.overwriteMergeResolve" title="Permalink to this definition">¶</a></dt>
4083 <dd><p>An overwriting resolver for merge conflicts. Calls L{defaultMergeResolve},
4084 but where a “mismatch” is detected, returns “overwrite” instead.</p>
4085 <p>@param map1: The map being merged into.
4086 @type map1: L{Mapping}.
4087 @param map2: The map being used as the merge operand.
4088 @type map2: L{Mapping}.
4089 @param key: The key in map2 (which also exists in map1).
4090 @type key: str</p>
4094 <div class="section" id="module-src.system">
4095 <span id="src-system-module"></span><h2>src.system module<a class="headerlink" href="#module-src.system" title="Permalink to this headline">¶</a></h2>
4096 <p>In this file : all functions that do a system call,
4097 like open a browser or an editor, or call a git command</p>
4098 <dl class="function">
4099 <dt id="src.system.archive_extract">
4100 <code class="descclassname">src.system.</code><code class="descname">archive_extract</code><span class="sig-paren">(</span><em>from_what</em>, <em>where</em>, <em>logger</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/system.html#archive_extract"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.system.archive_extract" title="Permalink to this definition">¶</a></dt>
4101 <dd><p>Extracts sources from an archive.</p>
4102 <table class="docutils field-list" frame="void" rules="none">
4103 <col class="field-name" />
4104 <col class="field-body" />
4105 <tbody valign="top">
4106 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
4107 <li><strong>str</strong> (<em>where</em>) – The path to the archive.</li>
4108 <li><strong>str</strong> – The path where to extract.</li>
4109 <li><strong>Logger</strong> (<em>logger</em>) – The logger instance to use.</li>
4113 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">True if the extraction is successful</p>
4116 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">boolean</p>
4123 <dl class="function">
4124 <dt id="src.system.cvs_extract">
4125 <code class="descclassname">src.system.</code><code class="descname">cvs_extract</code><span class="sig-paren">(</span><em>protocol</em>, <em>user</em>, <em>server</em>, <em>base</em>, <em>tag</em>, <em>product</em>, <em>where</em>, <em>logger</em>, <em>checkout=False</em>, <em>environment=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/system.html#cvs_extract"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.system.cvs_extract" title="Permalink to this definition">¶</a></dt>
4126 <dd><p>Extracts sources from a cvs repository.</p>
4127 <table class="docutils field-list" frame="void" rules="none">
4128 <col class="field-name" />
4129 <col class="field-body" />
4130 <tbody valign="top">
4131 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
4132 <li><strong>str</strong> (<em>where</em>) – The cvs protocol.</li>
4133 <li><strong>str</strong> – The user to be used.</li>
4134 <li><strong>str</strong> – The remote cvs server.</li>
4135 <li><strong>str</strong> – <p>.</p>
4137 <li><strong>str</strong> – The tag.</li>
4138 <li><strong>str</strong> – The product.</li>
4139 <li><strong>str</strong> – The path where to extract.</li>
4140 <li><strong>Logger</strong> (<em>logger</em>) – The logger instance to use.</li>
4141 <li><strong>boolean</strong> (<em>checkout</em>) – If true use checkout cvs.</li>
4142 <li><strong>src.environment.Environ</strong> (<em>environment</em>) – The environment to source when
4147 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">True if the extraction is successful</p>
4150 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">boolean</p>
4157 <dl class="function">
4158 <dt id="src.system.git_extract">
4159 <code class="descclassname">src.system.</code><code class="descname">git_extract</code><span class="sig-paren">(</span><em>from_what</em>, <em>tag</em>, <em>where</em>, <em>logger</em>, <em>environment=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/system.html#git_extract"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.system.git_extract" title="Permalink to this definition">¶</a></dt>
4160 <dd><p>Extracts sources from a git repository.</p>
4161 <table class="docutils field-list" frame="void" rules="none">
4162 <col class="field-name" />
4163 <col class="field-body" />
4164 <tbody valign="top">
4165 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
4166 <li><strong>str</strong> (<em>where</em>) – The remote git repository.</li>
4167 <li><strong>str</strong> – The tag.</li>
4168 <li><strong>str</strong> – The path where to extract.</li>
4169 <li><strong>Logger</strong> (<em>logger</em>) – The logger instance to use.</li>
4170 <li><strong>src.environment.Environ</strong> (<em>environment</em>) – The environment to source when
4175 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">True if the extraction is successful</p>
4178 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">boolean</p>
4185 <dl class="function">
4186 <dt id="src.system.show_in_editor">
4187 <code class="descclassname">src.system.</code><code class="descname">show_in_editor</code><span class="sig-paren">(</span><em>editor</em>, <em>filePath</em>, <em>logger</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/system.html#show_in_editor"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.system.show_in_editor" title="Permalink to this definition">¶</a></dt>
4188 <dd><p>open filePath using editor.</p>
4189 <table class="docutils field-list" frame="void" rules="none">
4190 <col class="field-name" />
4191 <col class="field-body" />
4192 <tbody valign="top">
4193 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
4194 <li><strong>str</strong> (<em>filePath</em>) – The editor to use.</li>
4195 <li><strong>str</strong> – The path to the file to open.</li>
4203 <dl class="function">
4204 <dt id="src.system.svn_extract">
4205 <code class="descclassname">src.system.</code><code class="descname">svn_extract</code><span class="sig-paren">(</span><em>user</em>, <em>from_what</em>, <em>tag</em>, <em>where</em>, <em>logger</em>, <em>checkout=False</em>, <em>environment=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/system.html#svn_extract"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.system.svn_extract" title="Permalink to this definition">¶</a></dt>
4206 <dd><p>Extracts sources from a svn repository.</p>
4207 <table class="docutils field-list" frame="void" rules="none">
4208 <col class="field-name" />
4209 <col class="field-body" />
4210 <tbody valign="top">
4211 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
4212 <li><strong>str</strong> (<em>where</em>) – The user to be used.</li>
4213 <li><strong>str</strong> – The remote git repository.</li>
4214 <li><strong>str</strong> – The tag.</li>
4215 <li><strong>str</strong> – The path where to extract.</li>
4216 <li><strong>Logger</strong> (<em>logger</em>) – The logger instance to use.</li>
4217 <li><strong>boolean</strong> (<em>checkout</em>) – If true use checkout svn.</li>
4218 <li><strong>src.environment.Environ</strong> (<em>environment</em>) – The environment to source when
4223 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">True if the extraction is successful</p>
4226 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">boolean</p>
4234 <div class="section" id="module-src.template">
4235 <span id="src-template-module"></span><h2>src.template module<a class="headerlink" href="#module-src.template" title="Permalink to this headline">¶</a></h2>
4237 <dt id="src.template.MyTemplate">
4238 <em class="property">class </em><code class="descclassname">src.template.</code><code class="descname">MyTemplate</code><span class="sig-paren">(</span><em>template</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/template.html#MyTemplate"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.template.MyTemplate" title="Permalink to this definition">¶</a></dt>
4239 <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">string.Template</span></code></p>
4240 <dl class="attribute">
4241 <dt id="src.template.MyTemplate.delimiter">
4242 <code class="descname">delimiter</code><em class="property"> = '\xc2\xa4'</em><a class="headerlink" href="#src.template.MyTemplate.delimiter" title="Permalink to this definition">¶</a></dt>
4245 <dl class="attribute">
4246 <dt id="src.template.MyTemplate.pattern">
4247 <code class="descname">pattern</code><em class="property"> = <_sre.SRE_Pattern object></em><a class="headerlink" href="#src.template.MyTemplate.pattern" title="Permalink to this definition">¶</a></dt>
4252 <dl class="function">
4253 <dt id="src.template.substitute">
4254 <code class="descclassname">src.template.</code><code class="descname">substitute</code><span class="sig-paren">(</span><em>template_file</em>, <em>subst_dic</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/template.html#substitute"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.template.substitute" title="Permalink to this definition">¶</a></dt>
4258 <div class="section" id="module-src.test_module">
4259 <span id="src-test-module-module"></span><h2>src.test_module module<a class="headerlink" href="#module-src.test_module" title="Permalink to this headline">¶</a></h2>
4261 <dt id="src.test_module.Test">
4262 <em class="property">class </em><code class="descclassname">src.test_module.</code><code class="descname">Test</code><span class="sig-paren">(</span><em>config</em>, <em>logger</em>, <em>tmp_working_dir</em>, <em>testbase=''</em>, <em>grids=None</em>, <em>sessions=None</em>, <em>launcher=''</em>, <em>show_desktop=True</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/test_module.html#Test"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.test_module.Test" title="Permalink to this definition">¶</a></dt>
4263 <dd><dl class="method">
4264 <dt id="src.test_module.Test.generate_launching_commands">
4265 <code class="descname">generate_launching_commands</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/test_module.html#Test.generate_launching_commands"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.test_module.Test.generate_launching_commands" title="Permalink to this definition">¶</a></dt>
4269 <dt id="src.test_module.Test.generate_script">
4270 <code class="descname">generate_script</code><span class="sig-paren">(</span><em>listTest</em>, <em>script_path</em>, <em>ignoreList</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/test_module.html#Test.generate_script"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.test_module.Test.generate_script" title="Permalink to this definition">¶</a></dt>
4274 <dt id="src.test_module.Test.get_test_timeout">
4275 <code class="descname">get_test_timeout</code><span class="sig-paren">(</span><em>test_name</em>, <em>default_value</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/test_module.html#Test.get_test_timeout"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.test_module.Test.get_test_timeout" title="Permalink to this definition">¶</a></dt>
4279 <dt id="src.test_module.Test.get_tmp_dir">
4280 <code class="descname">get_tmp_dir</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/test_module.html#Test.get_tmp_dir"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.test_module.Test.get_tmp_dir" title="Permalink to this definition">¶</a></dt>
4284 <dt id="src.test_module.Test.prepare_testbase">
4285 <code class="descname">prepare_testbase</code><span class="sig-paren">(</span><em>test_base_name</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/test_module.html#Test.prepare_testbase"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.test_module.Test.prepare_testbase" title="Permalink to this definition">¶</a></dt>
4289 <dt id="src.test_module.Test.prepare_testbase_from_dir">
4290 <code class="descname">prepare_testbase_from_dir</code><span class="sig-paren">(</span><em>testbase_name</em>, <em>testbase_dir</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/test_module.html#Test.prepare_testbase_from_dir"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.test_module.Test.prepare_testbase_from_dir" title="Permalink to this definition">¶</a></dt>
4294 <dt id="src.test_module.Test.prepare_testbase_from_git">
4295 <code class="descname">prepare_testbase_from_git</code><span class="sig-paren">(</span><em>testbase_name</em>, <em>testbase_base</em>, <em>testbase_tag</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/test_module.html#Test.prepare_testbase_from_git"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.test_module.Test.prepare_testbase_from_git" title="Permalink to this definition">¶</a></dt>
4299 <dt id="src.test_module.Test.prepare_testbase_from_svn">
4300 <code class="descname">prepare_testbase_from_svn</code><span class="sig-paren">(</span><em>user</em>, <em>testbase_name</em>, <em>testbase_base</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/test_module.html#Test.prepare_testbase_from_svn"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.test_module.Test.prepare_testbase_from_svn" title="Permalink to this definition">¶</a></dt>
4304 <dt id="src.test_module.Test.read_results">
4305 <code class="descname">read_results</code><span class="sig-paren">(</span><em>listTest</em>, <em>has_timed_out</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/test_module.html#Test.read_results"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.test_module.Test.read_results" title="Permalink to this definition">¶</a></dt>
4309 <dt id="src.test_module.Test.run_all_tests">
4310 <code class="descname">run_all_tests</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/test_module.html#Test.run_all_tests"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.test_module.Test.run_all_tests" title="Permalink to this definition">¶</a></dt>
4314 <dt id="src.test_module.Test.run_grid_tests">
4315 <code class="descname">run_grid_tests</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/test_module.html#Test.run_grid_tests"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.test_module.Test.run_grid_tests" title="Permalink to this definition">¶</a></dt>
4319 <dt id="src.test_module.Test.run_script">
4320 <code class="descname">run_script</code><span class="sig-paren">(</span><em>script_name</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/test_module.html#Test.run_script"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.test_module.Test.run_script" title="Permalink to this definition">¶</a></dt>
4324 <dt id="src.test_module.Test.run_session_tests">
4325 <code class="descname">run_session_tests</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/test_module.html#Test.run_session_tests"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.test_module.Test.run_session_tests" title="Permalink to this definition">¶</a></dt>
4329 <dt id="src.test_module.Test.run_testbase_tests">
4330 <code class="descname">run_testbase_tests</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/test_module.html#Test.run_testbase_tests"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.test_module.Test.run_testbase_tests" title="Permalink to this definition">¶</a></dt>
4334 <dt id="src.test_module.Test.run_tests">
4335 <code class="descname">run_tests</code><span class="sig-paren">(</span><em>listTest</em>, <em>ignoreList</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/test_module.html#Test.run_tests"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.test_module.Test.run_tests" title="Permalink to this definition">¶</a></dt>
4339 <dt id="src.test_module.Test.search_known_errors">
4340 <code class="descname">search_known_errors</code><span class="sig-paren">(</span><em>status</em>, <em>test_grid</em>, <em>test_session</em>, <em>test</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/test_module.html#Test.search_known_errors"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.test_module.Test.search_known_errors" title="Permalink to this definition">¶</a></dt>
4344 <dt id="src.test_module.Test.write_test_margin">
4345 <code class="descname">write_test_margin</code><span class="sig-paren">(</span><em>tab</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/test_module.html#Test.write_test_margin"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.test_module.Test.write_test_margin" title="Permalink to this definition">¶</a></dt>
4350 <dl class="function">
4351 <dt id="src.test_module.getTmpDirDEFAULT">
4352 <code class="descclassname">src.test_module.</code><code class="descname">getTmpDirDEFAULT</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/test_module.html#getTmpDirDEFAULT"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.test_module.getTmpDirDEFAULT" title="Permalink to this definition">¶</a></dt>
4356 <div class="section" id="module-src.xmlManager">
4357 <span id="src-xmlmanager-module"></span><h2>src.xmlManager module<a class="headerlink" href="#module-src.xmlManager" title="Permalink to this headline">¶</a></h2>
4359 <dt id="src.xmlManager.ReadXmlFile">
4360 <em class="property">class </em><code class="descclassname">src.xmlManager.</code><code class="descname">ReadXmlFile</code><span class="sig-paren">(</span><em>filePath</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/xmlManager.html#ReadXmlFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.xmlManager.ReadXmlFile" title="Permalink to this definition">¶</a></dt>
4361 <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
4362 <p>Class to manage reading of an xml log file</p>
4364 <dt id="src.xmlManager.ReadXmlFile.getRootAttrib">
4365 <code class="descname">getRootAttrib</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/xmlManager.html#ReadXmlFile.getRootAttrib"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.xmlManager.ReadXmlFile.getRootAttrib" title="Permalink to this definition">¶</a></dt>
4366 <dd><p>Get the attibutes of the self.xmlroot</p>
4367 <table class="docutils field-list" frame="void" rules="none">
4368 <col class="field-name" />
4369 <col class="field-body" />
4370 <tbody valign="top">
4371 <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">The attributes of the root node</td>
4373 <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">dict</td>
4380 <dt id="src.xmlManager.ReadXmlFile.get_attrib">
4381 <code class="descname">get_attrib</code><span class="sig-paren">(</span><em>node_name</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/xmlManager.html#ReadXmlFile.get_attrib"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.xmlManager.ReadXmlFile.get_attrib" title="Permalink to this definition">¶</a></dt>
4382 <dd><p>Get the attibutes of the node node_name in self.xmlroot</p>
4383 <table class="docutils field-list" frame="void" rules="none">
4384 <col class="field-name" />
4385 <col class="field-body" />
4386 <tbody valign="top">
4387 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>node_name</em>) – the name of the node</td>
4389 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">the attibutes of the node node_name in self.xmlroot</td>
4391 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">dict</td>
4398 <dt id="src.xmlManager.ReadXmlFile.get_node_text">
4399 <code class="descname">get_node_text</code><span class="sig-paren">(</span><em>node</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/xmlManager.html#ReadXmlFile.get_node_text"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.xmlManager.ReadXmlFile.get_node_text" title="Permalink to this definition">¶</a></dt>
4400 <dd><dl class="docutils">
4401 <dt>Get the text of the first node that has name </dt>
4402 <dd>that corresponds to the parameter node</dd>
4404 <table class="docutils field-list" frame="void" rules="none">
4405 <col class="field-name" />
4406 <col class="field-body" />
4407 <tbody valign="top">
4408 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>node</em>) – the name of the node from which get the text</td>
4410 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">the text of the first node that has name
4411 that corresponds to the parameter node</td>
4413 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str</td>
4422 <dt id="src.xmlManager.XmlLogFile">
4423 <em class="property">class </em><code class="descclassname">src.xmlManager.</code><code class="descname">XmlLogFile</code><span class="sig-paren">(</span><em>filePath</em>, <em>rootname</em>, <em>attrib={}</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/xmlManager.html#XmlLogFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.xmlManager.XmlLogFile" title="Permalink to this definition">¶</a></dt>
4424 <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
4425 <p>Class to manage writing in salomeTools xml log file</p>
4427 <dt id="src.xmlManager.XmlLogFile.add_simple_node">
4428 <code class="descname">add_simple_node</code><span class="sig-paren">(</span><em>node_name</em>, <em>text=None</em>, <em>attrib={}</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/xmlManager.html#XmlLogFile.add_simple_node"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.xmlManager.XmlLogFile.add_simple_node" title="Permalink to this definition">¶</a></dt>
4429 <dd><p>Add a node with some attibutes and text to the root node.</p>
4430 <table class="docutils field-list" frame="void" rules="none">
4431 <col class="field-name" />
4432 <col class="field-body" />
4433 <tbody valign="top">
4434 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
4435 <li><strong>str</strong> (<em>text</em>) – the name of the node to add</li>
4436 <li><strong>str</strong> – the text of the node</li>
4437 <li><strong>dict</strong> (<em>attrib</em>) – the dictionary containing the
4438 attribute of the new node</li>
4447 <dt id="src.xmlManager.XmlLogFile.append_node_attrib">
4448 <code class="descname">append_node_attrib</code><span class="sig-paren">(</span><em>node_name</em>, <em>attrib</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/xmlManager.html#XmlLogFile.append_node_attrib"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.xmlManager.XmlLogFile.append_node_attrib" title="Permalink to this definition">¶</a></dt>
4449 <dd><p>Append a new attributes to the node that has node_name as name</p>
4450 <table class="docutils field-list" frame="void" rules="none">
4451 <col class="field-name" />
4452 <col class="field-body" />
4453 <tbody valign="top">
4454 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
4455 <li><strong>str</strong> (<em>node_name</em>) – The name of the node on which append text</li>
4456 <li><strong>dixt</strong> (<em>attrib</em>) – The attrib to append</li>
4465 <dt id="src.xmlManager.XmlLogFile.append_node_text">
4466 <code class="descname">append_node_text</code><span class="sig-paren">(</span><em>node_name</em>, <em>text</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/xmlManager.html#XmlLogFile.append_node_text"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.xmlManager.XmlLogFile.append_node_text" title="Permalink to this definition">¶</a></dt>
4467 <dd><p>Append a new text to the node that has node_name as name</p>
4468 <table class="docutils field-list" frame="void" rules="none">
4469 <col class="field-name" />
4470 <col class="field-body" />
4471 <tbody valign="top">
4472 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
4473 <li><strong>str</strong> (<em>text</em>) – The name of the node on which append text</li>
4474 <li><strong>str</strong> – The text to append</li>
4483 <dt id="src.xmlManager.XmlLogFile.write_tree">
4484 <code class="descname">write_tree</code><span class="sig-paren">(</span><em>stylesheet=None</em>, <em>file_path=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/xmlManager.html#XmlLogFile.write_tree"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.xmlManager.XmlLogFile.write_tree" title="Permalink to this definition">¶</a></dt>
4485 <dd><p>Write the xml tree in the log file path. Add the stylesheet if asked.</p>
4486 <table class="docutils field-list" frame="void" rules="none">
4487 <col class="field-name" />
4488 <col class="field-body" />
4489 <tbody valign="top">
4490 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>stylesheet</em>) – The stylesheet to apply to the xml file</td>
4498 <dl class="function">
4499 <dt id="src.xmlManager.add_simple_node">
4500 <code class="descclassname">src.xmlManager.</code><code class="descname">add_simple_node</code><span class="sig-paren">(</span><em>root_node</em>, <em>node_name</em>, <em>text=None</em>, <em>attrib={}</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/xmlManager.html#add_simple_node"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.xmlManager.add_simple_node" title="Permalink to this definition">¶</a></dt>
4501 <dd><p>Add a node with some attibutes and text to the root node.</p>
4502 <table class="docutils field-list" frame="void" rules="none">
4503 <col class="field-name" />
4504 <col class="field-body" />
4505 <tbody valign="top">
4506 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
4507 <li><strong>etree.Element</strong> (<em>root_node</em>) – the Etree element where to add the new node</li>
4508 <li><strong>str</strong> (<em>text</em>) – the name of the node to add</li>
4509 <li><strong>str</strong> – the text of the node</li>
4510 <li><strong>dict</strong> (<em>attrib</em>) – the dictionary containing the
4511 attribute of the new node</li>
4519 <dl class="function">
4520 <dt id="src.xmlManager.append_node_attrib">
4521 <code class="descclassname">src.xmlManager.</code><code class="descname">append_node_attrib</code><span class="sig-paren">(</span><em>root_node</em>, <em>attrib</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/xmlManager.html#append_node_attrib"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.xmlManager.append_node_attrib" title="Permalink to this definition">¶</a></dt>
4522 <dd><p>Append a new attributes to the node that has node_name as name</p>
4523 <table class="docutils field-list" frame="void" rules="none">
4524 <col class="field-name" />
4525 <col class="field-body" />
4526 <tbody valign="top">
4527 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
4528 <li><strong>etree.Element</strong> (<em>root_node</em>) – the Etree element
4529 where to append the new attibutes</li>
4530 <li><strong>dixt</strong> (<em>attrib</em>) – The attrib to append</li>
4538 <dl class="function">
4539 <dt id="src.xmlManager.find_node_by_attrib">
4540 <code class="descclassname">src.xmlManager.</code><code class="descname">find_node_by_attrib</code><span class="sig-paren">(</span><em>xmlroot</em>, <em>name_node</em>, <em>key</em>, <em>value</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/xmlManager.html#find_node_by_attrib"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.xmlManager.find_node_by_attrib" title="Permalink to this definition">¶</a></dt>
4541 <dd><dl class="docutils">
4542 <dt>Find the nfirst ode from xmlroot that has name name_node and that has in </dt>
4543 <dd>its attributes {key : value}. Return the node</dd>
4545 <table class="docutils field-list" frame="void" rules="none">
4546 <col class="field-name" />
4547 <col class="field-body" />
4548 <tbody valign="top">
4549 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
4550 <li><strong>etree.Element</strong> (<em>xmlroot</em>) – the Etree element where to search</li>
4551 <li><strong>str</strong> (<em>value</em>) – the name of node to search</li>
4552 <li><strong>str</strong> – the key to search</li>
4553 <li><strong>str</strong> – the value to search</li>
4557 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">the found node</p>
4560 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">xmlroot etree.Element</p>
4567 <dl class="function">
4568 <dt id="src.xmlManager.write_report">
4569 <code class="descclassname">src.xmlManager.</code><code class="descname">write_report</code><span class="sig-paren">(</span><em>filename</em>, <em>xmlroot</em>, <em>stylesheet</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src/xmlManager.html#write_report"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.xmlManager.write_report" title="Permalink to this definition">¶</a></dt>
4570 <dd><p>Writes a report file from a XML tree.</p>
4571 <table class="docutils field-list" frame="void" rules="none">
4572 <col class="field-name" />
4573 <col class="field-body" />
4574 <tbody valign="top">
4575 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
4576 <li><strong>str</strong> (<em>stylesheet</em>) – The path to the file to create</li>
4577 <li><strong>etree.Element</strong> (<em>xmlroot</em>) – the Etree element to write to the file</li>
4578 <li><strong>str</strong> – The stylesheet to add to the begin of the file</li>
4587 <div class="section" id="module-src">
4588 <span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-src" title="Permalink to this headline">¶</a></h2>
4589 <p>initial imports and utilities methods for salomeTools</p>
4592 <em class="property">class </em><code class="descclassname">src.</code><code class="descname">Path</code><span class="sig-paren">(</span><em>path</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#Path"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.Path" title="Permalink to this definition">¶</a></dt>
4593 <dd><dl class="method">
4594 <dt id="src.Path.base">
4595 <code class="descname">base</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#Path.base"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.Path.base" title="Permalink to this definition">¶</a></dt>
4599 <dt id="src.Path.chmod">
4600 <code class="descname">chmod</code><span class="sig-paren">(</span><em>mode</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#Path.chmod"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.Path.chmod" title="Permalink to this definition">¶</a></dt>
4604 <dt id="src.Path.copy">
4605 <code class="descname">copy</code><span class="sig-paren">(</span><em>path</em>, <em>smart=False</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#Path.copy"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.Path.copy" title="Permalink to this definition">¶</a></dt>
4609 <dt id="src.Path.copydir">
4610 <code class="descname">copydir</code><span class="sig-paren">(</span><em>dst</em>, <em>smart=False</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#Path.copydir"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.Path.copydir" title="Permalink to this definition">¶</a></dt>
4614 <dt id="src.Path.copyfile">
4615 <code class="descname">copyfile</code><span class="sig-paren">(</span><em>path</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#Path.copyfile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.Path.copyfile" title="Permalink to this definition">¶</a></dt>
4619 <dt id="src.Path.copylink">
4620 <code class="descname">copylink</code><span class="sig-paren">(</span><em>path</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#Path.copylink"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.Path.copylink" title="Permalink to this definition">¶</a></dt>
4624 <dt id="src.Path.dir">
4625 <code class="descname">dir</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#Path.dir"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.Path.dir" title="Permalink to this definition">¶</a></dt>
4629 <dt id="src.Path.exists">
4630 <code class="descname">exists</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#Path.exists"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.Path.exists" title="Permalink to this definition">¶</a></dt>
4634 <dt id="src.Path.isdir">
4635 <code class="descname">isdir</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#Path.isdir"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.Path.isdir" title="Permalink to this definition">¶</a></dt>
4639 <dt id="src.Path.isfile">
4640 <code class="descname">isfile</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#Path.isfile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.Path.isfile" title="Permalink to this definition">¶</a></dt>
4644 <dt id="src.Path.islink">
4645 <code class="descname">islink</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#Path.islink"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.Path.islink" title="Permalink to this definition">¶</a></dt>
4649 <dt id="src.Path.list">
4650 <code class="descname">list</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#Path.list"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.Path.list" title="Permalink to this definition">¶</a></dt>
4654 <dt id="src.Path.make">
4655 <code class="descname">make</code><span class="sig-paren">(</span><em>mode=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#Path.make"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.Path.make" title="Permalink to this definition">¶</a></dt>
4659 <dt id="src.Path.readlink">
4660 <code class="descname">readlink</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#Path.readlink"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.Path.readlink" title="Permalink to this definition">¶</a></dt>
4664 <dt id="src.Path.rm">
4665 <code class="descname">rm</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#Path.rm"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.Path.rm" title="Permalink to this definition">¶</a></dt>
4669 <dt id="src.Path.smartcopy">
4670 <code class="descname">smartcopy</code><span class="sig-paren">(</span><em>path</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#Path.smartcopy"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.Path.smartcopy" title="Permalink to this definition">¶</a></dt>
4674 <dt id="src.Path.symlink">
4675 <code class="descname">symlink</code><span class="sig-paren">(</span><em>path</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#Path.symlink"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.Path.symlink" title="Permalink to this definition">¶</a></dt>
4680 <dl class="exception">
4681 <dt id="src.SatException">
4682 <em class="property">exception </em><code class="descclassname">src.</code><code class="descname">SatException</code><a class="reference internal" href="../../_modules/src.html#SatException"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.SatException" title="Permalink to this definition">¶</a></dt>
4683 <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">exceptions.Exception</span></code></p>
4684 <p>rename Exception Class</p>
4687 <dl class="function">
4688 <dt id="src.activate_mesa_property">
4689 <code class="descclassname">src.</code><code class="descname">activate_mesa_property</code><span class="sig-paren">(</span><em>config</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#activate_mesa_property"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.activate_mesa_property" title="Permalink to this definition">¶</a></dt>
4690 <dd><p>Add mesa property into application properties</p>
4691 <table class="docutils field-list" frame="void" rules="none">
4692 <col class="field-name" />
4693 <col class="field-body" />
4694 <tbody valign="top">
4695 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Config</strong> (<em>config</em>) – The global configuration. It must have an application!</td>
4701 <dl class="function">
4702 <dt id="src.check_config_has_application">
4703 <code class="descclassname">src.</code><code class="descname">check_config_has_application</code><span class="sig-paren">(</span><em>config</em>, <em>details=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#check_config_has_application"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.check_config_has_application" title="Permalink to this definition">¶</a></dt>
4704 <dd><p>check that the config has the key APPLICATION. Else raise an exception.</p>
4705 <table class="docutils field-list" frame="void" rules="none">
4706 <col class="field-name" />
4707 <col class="field-body" />
4708 <tbody valign="top">
4709 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>class 'common.pyconf.Config'</strong> (<em>config</em>) – The config.</td>
4715 <dl class="function">
4716 <dt id="src.check_config_has_profile">
4717 <code class="descclassname">src.</code><code class="descname">check_config_has_profile</code><span class="sig-paren">(</span><em>config</em>, <em>details=None</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#check_config_has_profile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.check_config_has_profile" title="Permalink to this definition">¶</a></dt>
4718 <dd><p>check that the config has the key APPLICATION.profile.
4719 else, raise an exception.</p>
4720 <table class="docutils field-list" frame="void" rules="none">
4721 <col class="field-name" />
4722 <col class="field-body" />
4723 <tbody valign="top">
4724 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>class 'common.pyconf.Config'</strong> (<em>config</em>) – The config.</td>
4730 <dl class="function">
4731 <dt id="src.config_has_application">
4732 <code class="descclassname">src.</code><code class="descname">config_has_application</code><span class="sig-paren">(</span><em>config</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#config_has_application"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.config_has_application" title="Permalink to this definition">¶</a></dt>
4735 <dl class="function">
4736 <dt id="src.deepcopy_list">
4737 <code class="descclassname">src.</code><code class="descname">deepcopy_list</code><span class="sig-paren">(</span><em>input_list</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#deepcopy_list"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.deepcopy_list" title="Permalink to this definition">¶</a></dt>
4738 <dd><p>Do a deep copy of a list</p>
4739 <table class="docutils field-list" frame="void" rules="none">
4740 <col class="field-name" />
4741 <col class="field-body" />
4742 <tbody valign="top">
4743 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>List</strong> (<em>input_list</em>) – The list to copy</td>
4745 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">The copy of the list</td>
4747 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">List</td>
4753 <dl class="function">
4754 <dt id="src.ensure_path_exists">
4755 <code class="descclassname">src.</code><code class="descname">ensure_path_exists</code><span class="sig-paren">(</span><em>p</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#ensure_path_exists"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.ensure_path_exists" title="Permalink to this definition">¶</a></dt>
4756 <dd><p>Create a path if not existing</p>
4757 <table class="docutils field-list" frame="void" rules="none">
4758 <col class="field-name" />
4759 <col class="field-body" />
4760 <tbody valign="top">
4761 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>p</em>) – The path.</td>
4767 <dl class="function">
4768 <dt id="src.find_file_in_lpath">
4769 <code class="descclassname">src.</code><code class="descname">find_file_in_lpath</code><span class="sig-paren">(</span><em>file_name</em>, <em>lpath</em>, <em>additional_dir=''</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#find_file_in_lpath"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.find_file_in_lpath" title="Permalink to this definition">¶</a></dt>
4770 <dd><p>Find in all the directories in lpath list the file that has the same name
4773 then return the full path of the file
4774 else return False.</p>
4775 <p>The additional_dir (optional) is the name of the directory to add to all
4777 <table class="docutils field-list" frame="void" rules="none">
4778 <col class="field-name" />
4779 <col class="field-body" />
4780 <tbody valign="top">
4781 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
4782 <li><strong>str</strong> (<em>additional_dir</em>) – The file name to search</li>
4783 <li><strong>List</strong> (<em>lpath</em>) – The list of directories where to search</li>
4784 <li><strong>str</strong> – The name of the additional directory</li>
4788 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">the full path of the file or False if not found</p>
4791 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">str</p>
4798 <dl class="function">
4799 <dt id="src.get_base_path">
4800 <code class="descclassname">src.</code><code class="descname">get_base_path</code><span class="sig-paren">(</span><em>config</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#get_base_path"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.get_base_path" title="Permalink to this definition">¶</a></dt>
4801 <dd><p>Returns the path of the products base.</p>
4802 <table class="docutils field-list" frame="void" rules="none">
4803 <col class="field-name" />
4804 <col class="field-body" />
4805 <tbody valign="top">
4806 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Config</strong> (<em>config</em>) – The global Config instance.</td>
4808 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">The path of the products base.</td>
4810 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str</td>
4816 <dl class="function">
4817 <dt id="src.get_cfg_param">
4818 <code class="descclassname">src.</code><code class="descname">get_cfg_param</code><span class="sig-paren">(</span><em>config</em>, <em>param_name</em>, <em>default</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#get_cfg_param"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.get_cfg_param" title="Permalink to this definition">¶</a></dt>
4819 <dd><p>eearch for param_name value in config.
4820 if param_name is not in config
4821 then return default,
4822 else return the found value</p>
4823 <table class="docutils field-list" frame="void" rules="none">
4824 <col class="field-name" />
4825 <col class="field-body" />
4826 <tbody valign="top">
4827 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
4828 <li><strong>class 'common.pyconf.Config'</strong> (<em>config</em>) – The config.</li>
4829 <li><strong>str</strong> (<em>default</em>) – the name of the parameter to get the value</li>
4830 <li><strong>str</strong> – The value to return if param_name is not in config</li>
4834 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">see initial description of the function</p>
4837 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">str</p>
4844 <dl class="function">
4845 <dt id="src.get_launcher_name">
4846 <code class="descclassname">src.</code><code class="descname">get_launcher_name</code><span class="sig-paren">(</span><em>config</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#get_launcher_name"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.get_launcher_name" title="Permalink to this definition">¶</a></dt>
4847 <dd><p>Returns the name of salome launcher.</p>
4848 <table class="docutils field-list" frame="void" rules="none">
4849 <col class="field-name" />
4850 <col class="field-body" />
4851 <tbody valign="top">
4852 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Config</strong> (<em>config</em>) – The global Config instance.</td>
4854 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">The name of salome launcher.</td>
4856 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str</td>
4862 <dl class="function">
4863 <dt id="src.get_log_path">
4864 <code class="descclassname">src.</code><code class="descname">get_log_path</code><span class="sig-paren">(</span><em>config</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#get_log_path"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.get_log_path" title="Permalink to this definition">¶</a></dt>
4865 <dd><p>Returns the path of the logs.</p>
4866 <table class="docutils field-list" frame="void" rules="none">
4867 <col class="field-name" />
4868 <col class="field-body" />
4869 <tbody valign="top">
4870 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Config</strong> (<em>config</em>) – The global Config instance.</td>
4872 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">The path of the logs.</td>
4874 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str</td>
4880 <dl class="function">
4881 <dt id="src.get_property_in_product_cfg">
4882 <code class="descclassname">src.</code><code class="descname">get_property_in_product_cfg</code><span class="sig-paren">(</span><em>product_cfg</em>, <em>pprty</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#get_property_in_product_cfg"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.get_property_in_product_cfg" title="Permalink to this definition">¶</a></dt>
4885 <dl class="function">
4886 <dt id="src.get_salome_version">
4887 <code class="descclassname">src.</code><code class="descname">get_salome_version</code><span class="sig-paren">(</span><em>config</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#get_salome_version"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.get_salome_version" title="Permalink to this definition">¶</a></dt>
4890 <dl class="function">
4891 <dt id="src.get_tmp_filename">
4892 <code class="descclassname">src.</code><code class="descname">get_tmp_filename</code><span class="sig-paren">(</span><em>cfg</em>, <em>name</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#get_tmp_filename"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.get_tmp_filename" title="Permalink to this definition">¶</a></dt>
4895 <dl class="function">
4896 <dt id="src.handleRemoveReadonly">
4897 <code class="descclassname">src.</code><code class="descname">handleRemoveReadonly</code><span class="sig-paren">(</span><em>func</em>, <em>path</em>, <em>exc</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#handleRemoveReadonly"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.handleRemoveReadonly" title="Permalink to this definition">¶</a></dt>
4900 <dl class="function">
4901 <dt id="src.merge_dicts">
4902 <code class="descclassname">src.</code><code class="descname">merge_dicts</code><span class="sig-paren">(</span><em>*dict_args</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#merge_dicts"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.merge_dicts" title="Permalink to this definition">¶</a></dt>
4903 <dd><p>Given any number of dicts, shallow copy and merge into a new dict,
4904 precedence goes to key value pairs in latter dicts.</p>
4907 <dl class="function">
4908 <dt id="src.only_numbers">
4909 <code class="descclassname">src.</code><code class="descname">only_numbers</code><span class="sig-paren">(</span><em>str_num</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#only_numbers"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.only_numbers" title="Permalink to this definition">¶</a></dt>
4912 <dl class="function">
4913 <dt id="src.parse_date">
4914 <code class="descclassname">src.</code><code class="descname">parse_date</code><span class="sig-paren">(</span><em>date</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#parse_date"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.parse_date" title="Permalink to this definition">¶</a></dt>
4915 <dd><p>Transform YYYYMMDD_hhmmss into YYYY-MM-DD hh:mm:ss.</p>
4916 <table class="docutils field-list" frame="void" rules="none">
4917 <col class="field-name" />
4918 <col class="field-body" />
4919 <tbody valign="top">
4920 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>str</strong> (<em>date</em>) – The date to transform</td>
4922 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">The date in the new format</td>
4924 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str</td>
4930 <dl class="function">
4931 <dt id="src.print_info">
4932 <code class="descclassname">src.</code><code class="descname">print_info</code><span class="sig-paren">(</span><em>logger</em>, <em>info</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#print_info"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.print_info" title="Permalink to this definition">¶</a></dt>
4933 <dd><p>Prints the tuples that are in info variable in a formatted way.</p>
4934 <table class="docutils field-list" frame="void" rules="none">
4935 <col class="field-name" />
4936 <col class="field-body" />
4937 <tbody valign="top">
4938 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
4939 <li><strong>Logger</strong> (<em>logger</em>) – The logging instance to use for the prints.</li>
4940 <li><strong>list</strong> (<em>info</em>) – The list of tuples to display</li>
4948 <dl class="function">
4949 <dt id="src.read_config_from_a_file">
4950 <code class="descclassname">src.</code><code class="descname">read_config_from_a_file</code><span class="sig-paren">(</span><em>filePath</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#read_config_from_a_file"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.read_config_from_a_file" title="Permalink to this definition">¶</a></dt>
4953 <dl class="function">
4954 <dt id="src.remove_item_from_list">
4955 <code class="descclassname">src.</code><code class="descname">remove_item_from_list</code><span class="sig-paren">(</span><em>input_list</em>, <em>item</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#remove_item_from_list"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.remove_item_from_list" title="Permalink to this definition">¶</a></dt>
4956 <dd><p>Remove all occurences of item from input_list</p>
4957 <table class="docutils field-list" frame="void" rules="none">
4958 <col class="field-name" />
4959 <col class="field-body" />
4960 <tbody valign="top">
4961 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>List</strong> (<em>input_list</em>) – The list to modify</td>
4963 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">The without any item</td>
4965 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">List</td>
4971 <dl class="function">
4972 <dt id="src.replace_in_file">
4973 <code class="descclassname">src.</code><code class="descname">replace_in_file</code><span class="sig-paren">(</span><em>filein</em>, <em>strin</em>, <em>strout</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/src.html#replace_in_file"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#src.replace_in_file" title="Permalink to this definition">¶</a></dt>
4974 <dd><p>Replace <strin> by <strout> in file <filein></p>
4984 <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
4985 <div class="sphinxsidebarwrapper">
4986 <p class="logo"><a href="../../index.html">
4987 <img class="logo" src="../../_static/sat_v5.0.png" alt="Logo"/>
4989 <h3><a href="../../index.html">Table Of Contents</a></h3>
4991 <li><a class="reference internal" href="#">src package</a><ul>
4992 <li><a class="reference internal" href="#subpackages">Subpackages</a></li>
4993 <li><a class="reference internal" href="#submodules">Submodules</a></li>
4994 <li><a class="reference internal" href="#module-src.ElementTree">src.ElementTree module</a></li>
4995 <li><a class="reference internal" href="#module-src.architecture">src.architecture module</a></li>
4996 <li><a class="reference internal" href="#module-src.compilation">src.compilation module</a></li>
4997 <li><a class="reference internal" href="#module-src.debug">src.debug module</a></li>
4998 <li><a class="reference internal" href="#module-src.environment">src.environment module</a></li>
4999 <li><a class="reference internal" href="#module-src.fileEnviron">src.fileEnviron module</a></li>
5000 <li><a class="reference internal" href="#module-src.fork">src.fork module</a></li>
5001 <li><a class="reference internal" href="#module-src.logger">src.logger module</a></li>
5002 <li><a class="reference internal" href="#module-src.options">src.options module</a></li>
5003 <li><a class="reference internal" href="#module-src.printcolors">src.printcolors module</a></li>
5004 <li><a class="reference internal" href="#module-src.product">src.product module</a></li>
5005 <li><a class="reference internal" href="#module-src.pyconf">src.pyconf module</a></li>
5006 <li><a class="reference internal" href="#module-src.system">src.system module</a></li>
5007 <li><a class="reference internal" href="#module-src.template">src.template module</a></li>
5008 <li><a class="reference internal" href="#module-src.test_module">src.test_module module</a></li>
5009 <li><a class="reference internal" href="#module-src.xmlManager">src.xmlManager module</a></li>
5010 <li><a class="reference internal" href="#module-src">Module contents</a></li>
5014 <div class="relations">
5015 <h3>Related Topics</h3>
5017 <li><a href="../../index.html">Documentation overview</a><ul>
5018 <li><a href="modules.html">src</a><ul>
5019 <li>Previous: <a href="modules.html" title="previous chapter">src</a></li>
5020 <li>Next: <a href="src.colorama.html" title="next chapter">src.colorama package</a></li>
5025 <div role="note" aria-label="source link">
5027 <ul class="this-page-menu">
5028 <li><a href="../../_sources/commands/apidoc/src.rst.txt"
5029 rel="nofollow">Show Source</a></li>
5032 <div id="searchbox" style="display: none" role="search">
5033 <h3>Quick search</h3>
5034 <div class="searchformwrapper">
5035 <form class="search" action="../../search.html" method="get">
5036 <input type="text" name="q" />
5037 <input type="submit" value="Go" />
5038 <input type="hidden" name="check_keywords" value="yes" />
5039 <input type="hidden" name="area" value="default" />
5043 <script type="text/javascript">$('#searchbox').show(0);</script>
5046 <div class="clearer"></div>
5048 <div class="footer">
5052 Powered by <a href="http://sphinx-doc.org/">Sphinx 1.7.3</a>
5053 & <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.10</a>
5056 <a href="../../_sources/commands/apidoc/src.rst.txt"
5057 rel="nofollow">Page source</a>