1 %% Generated by Sphinx.
2 \def\sphinxdocclass{report}
3 \documentclass[a4paper,10pt,english]{sphinxmanual}
5 \let\sphinxpxdimen\pdfpxdimen\else\newdimen\sphinxpxdimen
6 \fi \sphinxpxdimen=.75bp\relax
8 \PassOptionsToPackage{warn}{textcomp}
9 \usepackage[utf8]{inputenc}
10 \ifdefined\DeclareUnicodeCharacter
11 \ifdefined\DeclareUnicodeCharacterAsOptional
12 \DeclareUnicodeCharacter{"00A0}{\nobreakspace}
13 \DeclareUnicodeCharacter{"2500}{\sphinxunichar{2500}}
14 \DeclareUnicodeCharacter{"2502}{\sphinxunichar{2502}}
15 \DeclareUnicodeCharacter{"2514}{\sphinxunichar{2514}}
16 \DeclareUnicodeCharacter{"251C}{\sphinxunichar{251C}}
17 \DeclareUnicodeCharacter{"2572}{\textbackslash}
19 \DeclareUnicodeCharacter{00A0}{\nobreakspace}
20 \DeclareUnicodeCharacter{2500}{\sphinxunichar{2500}}
21 \DeclareUnicodeCharacter{2502}{\sphinxunichar{2502}}
22 \DeclareUnicodeCharacter{2514}{\sphinxunichar{2514}}
23 \DeclareUnicodeCharacter{251C}{\sphinxunichar{251C}}
24 \DeclareUnicodeCharacter{2572}{\textbackslash}
28 \usepackage[T1]{fontenc}
29 \usepackage{amsmath,amssymb,amstext}
32 \usepackage[Bjarne]{fncychap}
34 \sphinxsetup{verbatimwithframe=false, VerbatimColor={rgb}{.98,.94,.94}}
37 % Include hyperref last.
39 % Fix anchor placement for figures with captions.
40 \usepackage{hypcap}% it must be loaded after hyperref.
41 % Set up styles of URL: it should be placed after hyperref.
44 \addto\captionsenglish{\renewcommand{\figurename}{Fig.}}
45 \addto\captionsenglish{\renewcommand{\tablename}{Table}}
46 \addto\captionsenglish{\renewcommand{\literalblockname}{Listing}}
48 \addto\captionsenglish{\renewcommand{\literalblockcontinuedname}{continued from previous page}}
49 \addto\captionsenglish{\renewcommand{\literalblockcontinuesname}{continues on next page}}
51 \addto\extrasenglish{\def\pageautorefname{page}}
53 \setcounter{tocdepth}{1}
57 \title{salomeTools Documentation}
60 \author{CEA DEN/DANS/DM2S/STMF/LGLS}
61 \newcommand{\sphinxlogo}{\vbox{}}
62 \renewcommand{\releasename}{Release}
68 \sphinxtableofcontents
69 \phantomsection\label{\detokenize{index::doc}}
74 \noindent{\hspace*{\fill}\sphinxincludegraphics[scale=1.0]{{sat_about}.png}\hspace*{\fill}}
76 \begin{sphinxadmonition}{warning}{Warning:}
77 This documentation is under construction.
78 \end{sphinxadmonition}
80 The \sphinxstylestrong{Sa}lome\sphinxstylestrong{T}ools (sat) is a suite of commands
81 that can be used to perform operations on \sphinxhref{http://www.salome-platform.org}{SALOME}%
82 \begin{footnote}[1]\sphinxAtStartFootnote
83 \sphinxnolinkurl{http://www.salome-platform.org}
87 For example, sat allows you to compile SALOME’s codes
88 (prerequisites, products)
89 create application, run tests, create package, etc.
91 This utility code is a set of \sphinxhref{https://docs.python.org/2.7}{Python}%
92 \begin{footnote}[2]\sphinxAtStartFootnote
93 \sphinxnolinkurl{https://docs.python.org/2.7}
95 \end{footnote} scripts files.
97 Find a \sphinxhref{./../latex/salomeTools.pdf}{pdf version of this documentation}
100 \chapter{Quick start}
101 \label{\detokenize{index:quick-start}}\label{\detokenize{index:salome-tools}}
103 \section{Installation}
104 \label{\detokenize{installation_of_sat:installation}}\label{\detokenize{installation_of_sat::doc}}
105 Usually user could find (and use) command \sphinxstylestrong{sat} directly after a ‘detar’ installation of SALOME.
107 \fvset{hllines={, ,}}%
108 \begin{sphinxVerbatim}[commandchars=\\\{\}]
109 tar \PYGZhy{}xf .../SALOME\PYGZus{}xx.tgz
110 \PYG{n+nb}{cd} SALOME\PYGZus{}xx
111 ls \PYGZhy{}l sat \PYG{c+c1}{\PYGZsh{} sat \PYGZhy{}\PYGZgt{} salomeTools/sat}
114 Python package (scripts of salomeTools) actually remains in directory \sphinxstyleemphasis{salomeTools}.
117 \section{Configuration}
118 \label{\detokenize{configuration:configuration}}\label{\detokenize{configuration::doc}}
119 \sphinxstyleemphasis{salomeTools} uses files to store its configuration parameters.
121 There are several configuration files which are loaded by salomeTools in a specific order.
122 When all the files are loaded a \sphinxstyleemphasis{config} object is created.
123 Then, this object is passed to all command scripts.
127 \label{\detokenize{configuration:syntax}}
128 The configuration files use a python-like structure format
129 (see \sphinxhref{http://www.red-dove.com/config-doc/}{config module}%
130 \begin{footnote}[3]\sphinxAtStartFootnote
131 \sphinxnolinkurl{http://www.red-dove.com/config-doc/}
133 \end{footnote} for a complete description).
136 \sphinxstylestrong{\{\}} define a dictionary,
139 \sphinxstylestrong{{[}{]}} define a list,
142 \sphinxstylestrong{@} can be used to include a file,
145 \sphinxstylestrong{\$prefix} reference to another parameter (ex: \sphinxcode{\sphinxupquote{\$PRODUCT.name}}),
148 \sphinxstylestrong{\#} comments.
152 \begin{sphinxadmonition}{note}{Note:}
153 in this documentation a reference to a configuration parameter will be noted \sphinxcode{\sphinxupquote{XXX.YYY}}.
154 \end{sphinxadmonition}
157 \subsection{Description}
158 \label{\detokenize{configuration:description}}
160 \subsubsection{VARS section}
161 \label{\detokenize{configuration:vars-section}}\label{\detokenize{configuration:id1}}
162 \begin{DUlineblock}{0em}
163 \item[] This section is dynamically created by salomeTools at run time.
164 \item[] It contains information about the environment: date, time, OS, architecture etc.
167 \fvset{hllines={, ,}}%
168 \begin{sphinxVerbatim}[commandchars=\\\{\}]
169 \PYG{c+c1}{\PYGZsh{} to get the current setting}
170 \PYG{n}{sat} \PYG{n}{config} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{value} \PYG{n}{VARS}
174 \subsubsection{PRODUCTS section}
175 \label{\detokenize{configuration:products-section}}
176 \begin{DUlineblock}{0em}
177 \item[] This section is defined in the product file.
178 \item[] It contains instructions on how to build a version of SALOME (list of prerequisites-products and versions)
181 \fvset{hllines={, ,}}%
182 \begin{sphinxVerbatim}[commandchars=\\\{\}]
183 \PYG{c+c1}{\PYGZsh{} to get the current setting}
184 \PYG{n}{sat} \PYG{n}{config} \PYG{n}{SALOME}\PYG{o}{\PYGZhy{}}\PYG{n}{xx} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{value} \PYG{n}{PRODUCTS}
188 \subsubsection{APPLICATION section}
189 \label{\detokenize{configuration:application-section}}
190 \begin{DUlineblock}{0em}
191 \item[] This section is optional, it is also defined in the product file.
192 \item[] It gives additional parameters to create an application based on SALOME, as versions of products to use.
195 \fvset{hllines={, ,}}%
196 \begin{sphinxVerbatim}[commandchars=\\\{\}]
197 \PYG{c+c1}{\PYGZsh{} to get the current setting}
198 \PYG{n}{sat} \PYG{n}{config} \PYG{n}{SALOME}\PYG{o}{\PYGZhy{}}\PYG{n}{xx} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{value} \PYG{n}{APPLICATION}
202 \subsubsection{USER section}
203 \label{\detokenize{configuration:user-section}}\label{\detokenize{configuration:id2}}
204 This section is defined by the user configuration file,
205 \sphinxcode{\sphinxupquote{\textasciitilde{}/.salomeTools/salomeTools.pyconf}}.
207 The \sphinxcode{\sphinxupquote{USER}} section defines some parameters (not exhaustive):
210 \sphinxstylestrong{workDir} :
213 \begin{DUlineblock}{0em}
214 \item[] The working directory.
215 \item[] Each product will be usually installed here (in sub-directories).
220 \sphinxstylestrong{browser} : The web browser to use (\sphinxstyleemphasis{firefox}).
223 \sphinxstylestrong{editor} : The editor to use (\sphinxstyleemphasis{vi, pluma}).
226 and other user preferences.
230 \fvset{hllines={, ,}}%
231 \begin{sphinxVerbatim}[commandchars=\\\{\}]
232 \PYG{c+c1}{\PYGZsh{} to get the current setting}
233 \PYG{n}{sat} \PYG{n}{config} \PYG{n}{SALOME}\PYG{o}{\PYGZhy{}}\PYG{n}{xx} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{value} \PYG{n}{USER}
239 \section{Usage of SAlomeTools}
240 \label{\detokenize{usage_of_sat:svn}}\label{\detokenize{usage_of_sat:usage-of-salometools}}\label{\detokenize{usage_of_sat::doc}}
243 \label{\detokenize{usage_of_sat:usage}}
244 sat usage is a Command Line Interface (\sphinxhref{https://en.wikipedia.org/wiki/Command-line\_interface}{CLI}%
245 \begin{footnote}[4]\sphinxAtStartFootnote
246 \sphinxnolinkurl{https://en.wikipedia.org/wiki/Command-line\_interface}
250 \fvset{hllines={, ,}}%
251 \begin{sphinxVerbatim}[commandchars=\\\{\}]
252 sat \PYG{o}{[}generic\PYGZus{}options\PYG{o}{]} \PYG{o}{[}command\PYG{o}{]} \PYG{o}{[}product\PYG{o}{]} \PYG{o}{[}command\PYGZus{}options\PYG{o}{]}
256 \subsubsection{Options of sat}
257 \label{\detokenize{usage_of_sat:options-of-sat}}
258 Useful \sphinxstyleemphasis{not exhaustive} generic options of \sphinxstyleemphasis{sat} CLI.
261 \paragraph{\sphinxstyleemphasis{\textendash{}help or -h}}
262 \label{\detokenize{usage_of_sat:help-or-h}}
263 Get help as simple text.
265 \fvset{hllines={, ,}}%
266 \begin{sphinxVerbatim}[commandchars=\\\{\}]
267 sat \PYGZhy{}\PYGZhy{}help \PYG{c+c1}{\PYGZsh{} get the list of existing commands}
268 sat \PYGZhy{}\PYGZhy{}help compile \PYG{c+c1}{\PYGZsh{} get the help on a specific command \PYGZsq{}compile\PYGZsq{}}
272 \paragraph{\sphinxstyleemphasis{\textendash{}debug or -g}}
273 \label{\detokenize{usage_of_sat:debug-or-g}}
274 Execution in debug mode allows to see more trace and \sphinxstyleemphasis{stack} if an exception is raised.
277 \paragraph{\sphinxstyleemphasis{\textendash{}verbose or -v}}
278 \label{\detokenize{usage_of_sat:verbose-or-v}}
279 Change verbosity level (default is 3).
281 \fvset{hllines={, ,}}%
282 \begin{sphinxVerbatim}[commandchars=\\\{\}]
283 \PYG{c+c1}{\PYGZsh{} for product \PYGZsq{}SALOME\PYGZus{}xx\PYGZsq{} for example}
284 \PYG{c+c1}{\PYGZsh{} execute compile command in debug mode with trace level 4}
285 sat \PYGZhy{}g \PYGZhy{}v \PYG{l+m}{4} compile SALOME\PYGZus{}xx
289 \subsection{Build a SALOME product}
290 \label{\detokenize{usage_of_sat:build-a-salome-product}}
292 \subsubsection{Get the list of available products}
293 \label{\detokenize{usage_of_sat:get-the-list-of-available-products}}
294 To get the list of the current available products in your context:
296 \fvset{hllines={, ,}}%
297 \begin{sphinxVerbatim}[commandchars=\\\{\}]
298 sat config \PYGZhy{}\PYGZhy{}list
302 \subsubsection{Prepare sources of a product}
303 \label{\detokenize{usage_of_sat:prepare-sources-of-a-product}}
304 To prepare (get) \sphinxstyleemphasis{all} the sources of a product (\sphinxstyleemphasis{SALOME\_xx} for example):
306 \fvset{hllines={, ,}}%
307 \begin{sphinxVerbatim}[commandchars=\\\{\}]
308 sat prepare SALOME\PYGZus{}xx
311 \begin{DUlineblock}{0em}
312 \item[] The sources are usually copied in directories
313 \item[] \sphinxstyleemphasis{\$USER.workDir + SALOME\_xx… + SOURCES + \$PRODUCT.name}
317 \subsubsection{Compile SALOME}
318 \label{\detokenize{usage_of_sat:compile-salome}}
321 \fvset{hllines={, ,}}%
322 \begin{sphinxVerbatim}[commandchars=\\\{\}]
323 \PYG{c+c1}{\PYGZsh{} compile all prerequisites/products}
324 sat compile SALOME\PYGZus{}xx
326 \PYG{c+c1}{\PYGZsh{} compile only 2 products (KERNEL and SAMPLES), if not done yet}
327 sat compile SALOME\PYGZus{}xx \PYGZhy{}\PYGZhy{}products KERNEL,SAMPLES
329 \PYG{c+c1}{\PYGZsh{} compile only 2 products, unconditionaly}
330 sat compile SALOME\PYGZus{}xx \PYGZhy{}\PYGZhy{}\PYGZhy{}products SAMPLES \PYGZhy{}\PYGZhy{}clean\PYGZus{}all
333 \begin{DUlineblock}{0em}
334 \item[] The products are usually build in the directories
335 \item[] \sphinxstyleemphasis{\$USER.workDir + SALOME\_xx… + BUILD + \$PRODUCT.name}
337 \item[] The products are usually installed in the directories
338 \item[] \sphinxstyleemphasis{\$USER.workDir + SALOME\_xx… + INSTALL + \$PRODUCT.name}
342 \chapter{List of Commands}
343 \label{\detokenize{index:list-of-commands}}
347 \section{Command doc}
348 \label{\detokenize{commands/doc:svn}}\label{\detokenize{commands/doc::doc}}\label{\detokenize{commands/doc:command-doc}}
350 \subsection{Description}
351 \label{\detokenize{commands/doc:description}}
352 The \sphinxstylestrong{doc} command displays sat documentation.
356 \label{\detokenize{commands/doc:usage}}\begin{itemize}
358 Show (in a web browser) the sat documentation:
360 \fvset{hllines={, ,}}%
361 \begin{sphinxVerbatim}[commandchars=\\\{\}]
362 \PYG{n}{sat} \PYG{n}{doc} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{html}
366 Show (in evince, for example) the (same) sat documentation in format pdf:
368 \fvset{hllines={, ,}}%
369 \begin{sphinxVerbatim}[commandchars=\\\{\}]
370 \PYG{n}{sat} \PYG{n}{doc} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{pdf}
374 Edit and modify in your preference user editor the sources files (rst) of sat documentation:
376 \fvset{hllines={, ,}}%
377 \begin{sphinxVerbatim}[commandchars=\\\{\}]
378 \PYG{n}{sat} \PYG{n}{doc} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{edit}
382 get information how to compile locally sat documentation (from the sources files):
384 \fvset{hllines={, ,}}%
385 \begin{sphinxVerbatim}[commandchars=\\\{\}]
386 \PYG{n}{sat} \PYG{n}{doc} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n+nb}{compile}
392 \subsection{Some useful configuration pathes}
393 \label{\detokenize{commands/doc:some-useful-configuration-pathes}}\begin{itemize}
395 \sphinxstylestrong{USER}
398 \sphinxstylestrong{browser} : The browser used to show the html files (\sphinxstyleemphasis{firefox} for example).
401 \sphinxstylestrong{pdf\_viewer} : The viewer used to show the pdf files (\sphinxstyleemphasis{evince} for example).
404 \sphinxstylestrong{editor} : The editor used to edit ascii text files (\sphinxstyleemphasis{pluma or gedit} for example).
413 \section{Command config}
414 \label{\detokenize{commands/config:svn}}\label{\detokenize{commands/config:command-config}}\label{\detokenize{commands/config::doc}}
416 \subsection{Description}
417 \label{\detokenize{commands/config:description}}
418 The \sphinxstylestrong{config} command manages sat configuration.
419 It allows display, manipulation and operation on configuration files
423 \label{\detokenize{commands/config:usage}}\begin{itemize}
425 Edit the user personal configuration file \sphinxcode{\sphinxupquote{\$HOME/.salomeTools/SAT.pyconf}}. It is used to store the user personal choices, like the favorite editor, browser, pdf viewer:
427 \fvset{hllines={, ,}}%
428 \begin{sphinxVerbatim}[commandchars=\\\{\}]
429 \PYG{n}{sat} \PYG{n}{config} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{edit}
433 List the available applications (they come from the sat projects defined in \sphinxcode{\sphinxupquote{data/local.pyconf}}:
435 \fvset{hllines={, ,}}%
436 \begin{sphinxVerbatim}[commandchars=\\\{\}]
437 \PYG{n}{sat} \PYG{n}{config} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n+nb}{list}
441 Edit the configuration of an application:
443 \fvset{hllines={, ,}}%
444 \begin{sphinxVerbatim}[commandchars=\\\{\}]
445 \PYG{n}{sat} \PYG{n}{config} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{edit}
449 Copy an application configuration file into the user personal directory:
451 \fvset{hllines={, ,}}%
452 \begin{sphinxVerbatim}[commandchars=\\\{\}]
453 \PYG{n}{sat} \PYG{n}{config} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{copy} \PYG{p}{[}\PYG{n}{new\PYGZus{}name}\PYG{p}{]}
457 \begin{DUlineblock}{0em}
458 \item[] Print the value of a configuration parameter.
459 \item[] Use the automatic completion to get recursively the parameter names.
460 \item[] Use \sphinxstyleemphasis{\textendash{}no\_label} option to get \sphinxstyleemphasis{only} the value, \sphinxstyleemphasis{without} label (useful in automatic scripts).
461 \item[] Examples (with \sphinxstyleemphasis{SALOME-xx} as \sphinxstyleemphasis{SALOME-8.4.0} ):
464 \fvset{hllines={, ,}}%
465 \begin{sphinxVerbatim}[commandchars=\\\{\}]
466 \PYG{c+c1}{\PYGZsh{} sat config \PYGZhy{}\PYGZhy{}value \PYGZlt{}parameter\PYGZus{}path\PYGZgt{}}
467 sat config \PYGZhy{}\PYGZhy{}value . \PYG{c+c1}{\PYGZsh{} all the configuration}
468 sat config \PYGZhy{}\PYGZhy{}value LOCAL
469 sat config \PYGZhy{}\PYGZhy{}value LOCAL.workdir
471 \PYG{c+c1}{\PYGZsh{} sat config \PYGZlt{}application\PYGZgt{} \PYGZhy{}\PYGZhy{}value \PYGZlt{}parameter\PYGZus{}path\PYGZgt{}}
472 sat config SALOME\PYGZhy{}xx \PYGZhy{}\PYGZhy{}value APPLICATION.workdir
473 sat config SALOME\PYGZhy{}xx \PYGZhy{}\PYGZhy{}no\PYGZus{}label \PYGZhy{}\PYGZhy{}value APPLICATION.workdir
477 \begin{DUlineblock}{0em}
478 \item[] Print in one-line-by-value mode the value of a configuration parameter,
479 \item[] with its source \sphinxstyleemphasis{expression}, if any.
480 \item[] This is a debug mode, useful for developers.
481 \item[] Prints the parameter path, the source expression if any, and the final value:
484 \fvset{hllines={, ,}}%
485 \begin{sphinxVerbatim}[commandchars=\\\{\}]
486 \PYG{n}{sat} \PYG{n}{config} \PYG{n}{SALOME}\PYG{o}{\PYGZhy{}}\PYG{n}{xx} \PYG{o}{\PYGZhy{}}\PYG{n}{g} \PYG{n}{USER}
489 \begin{sphinxadmonition}{note}{Note:}
490 And so, \sphinxstyleemphasis{not only for fun}, to get \sphinxstylestrong{all expressions} of configuration
492 \fvset{hllines={, ,}}%
493 \begin{sphinxVerbatim}[commandchars=\\\{\}]
494 sat config SALOME\PYGZhy{}xx \PYGZhy{}g . \PYG{p}{\textbar{}} grep \PYGZhy{}e \PYG{l+s+s2}{\PYGZdq{}\PYGZhy{}\PYGZhy{}\PYGZgt{}\PYGZdq{}}
496 \end{sphinxadmonition}
499 Print the patches that are applied:
501 \fvset{hllines={, ,}}%
502 \begin{sphinxVerbatim}[commandchars=\\\{\}]
503 \PYG{n}{sat} \PYG{n}{config} \PYG{n}{SALOME}\PYG{o}{\PYGZhy{}}\PYG{n}{xx} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{show\PYGZus{}patchs}
507 Get information on a product configuration:
511 \fvset{hllines={, ,}}%
512 \begin{sphinxVerbatim}[commandchars=\\\{\}]
513 \PYG{c+c1}{\PYGZsh{} sat config \PYGZlt{}application\PYGZgt{} \PYGZhy{}\PYGZhy{}info \PYGZlt{}product\PYGZgt{}}
514 sat config SALOME\PYGZhy{}xx \PYGZhy{}\PYGZhy{}info KERNEL
515 sat config SALOME\PYGZhy{}xx \PYGZhy{}\PYGZhy{}info qt
519 \subsection{Some useful configuration pathes}
520 \label{\detokenize{commands/config:some-useful-configuration-pathes}}
521 Exploring a current configuration.
524 \sphinxstylestrong{PATHS}: To get list of directories where to find files.
527 \sphinxstylestrong{USER}: To get user preferences (editor, pdf viewer, web browser, default working dir).
533 \fvset{hllines={, ,}}%
534 \begin{sphinxVerbatim}[commandchars=\\\{\}]
535 \PYG{n}{sat} \PYG{n}{config} \PYG{n}{SALOME}\PYG{o}{\PYGZhy{}}\PYG{n}{xx} \PYG{o}{\PYGZhy{}}\PYG{n}{v} \PYG{n}{PATHS}
536 \PYG{n}{sat} \PYG{n}{config} \PYG{n}{SALOME}\PYG{o}{\PYGZhy{}}\PYG{n}{xx} \PYG{o}{\PYGZhy{}}\PYG{n}{v} \PYG{n}{USERS}
542 \section{Command prepare}
543 \label{\detokenize{commands/prepare:svn}}\label{\detokenize{commands/prepare:command-prepare}}\label{\detokenize{commands/prepare::doc}}
545 \subsection{Description}
546 \label{\detokenize{commands/prepare:description}}
547 The \sphinxstylestrong{prepare} command brings the sources of an application in the \sphinxstyleemphasis{sources
548 application directory}, in order to compile them with the compile command.
550 The sources can be prepared from VCS software (\sphinxstyleemphasis{cvs, svn, git}), an archive or a directory.
552 \begin{sphinxadmonition}{warning}{Warning:}
553 When sat prepares a product, it first removes the
554 existing directory, except if the development mode is activated.
555 When you are working on a product, you need to declare in
556 the application configuration this product in \sphinxstylestrong{dev} mode.
557 \end{sphinxadmonition}
561 \label{\detokenize{commands/prepare:remarks}}
563 \subsubsection{VCS bases (git, svn, cvs)}
564 \label{\detokenize{commands/prepare:vcs-bases-git-svn-cvs}}
565 The \sphinxstyleemphasis{prepare} command does not manage authentication on the cvs server.
566 For example, to prepare modules from a cvs server, you first need to login once.
568 To avoid typing a password for each product,
569 you may use a ssh key with passphrase, or store your password
570 (in .cvspass or .gitconfig files).
571 If you have security concerns, it is also possible to use
572 a bash agent and type your password only once.
575 \subsubsection{Dev mode}
576 \label{\detokenize{commands/prepare:dev-mode}}
577 By default \sphinxstyleemphasis{prepare} uses \sphinxstyleemphasis{export} mode: it creates an image
578 of the sources, corresponding to the tag or branch specified,
579 without any link to the VCS base.
580 To perform a \sphinxstyleemphasis{checkout} (svn, cvs) or a \sphinxstyleemphasis{git clone} (git),
581 you need to declare the product in dev mode in your application configuration:
582 edit the application configuration file (pyconf) and modify the product declaration:
584 \fvset{hllines={, ,}}%
585 \begin{sphinxVerbatim}[commandchars=\\\{\}]
586 sat config \PYGZlt{}application\PYGZgt{} \PYGZhy{}e
587 \PYG{c+c1}{\PYGZsh{} and edit the product section:}
588 \PYG{c+c1}{\PYGZsh{} \PYGZlt{}product\PYGZgt{} : \PYGZob{}tag : \PYGZdq{}my\PYGZus{}tag\PYGZdq{}, dev : \PYGZdq{}yes\PYGZdq{}, debug : \PYGZdq{}yes\PYGZdq{}\PYGZcb{}}
591 The first time you will execute the \sphinxstyleemphasis{sat prepare} command,
592 your module will be downloaded in \sphinxstyleemphasis{checkout} mode
593 (inside the SOURCES directory of the application.
594 Then, you can develop in this repository, and finally push
595 them in the base when they are ready.
596 If you type during the development process by mistake
597 a \sphinxstyleemphasis{sat prepare} command, the sources in dev mode will
598 not be altered/removed (Unless you use -f option)
602 \label{\detokenize{commands/prepare:usage}}\begin{itemize}
604 Prepare the sources of a complete application in SOURCES directory (all products):
606 \fvset{hllines={, ,}}%
607 \begin{sphinxVerbatim}[commandchars=\\\{\}]
608 \PYG{n}{sat} \PYG{n}{prepare} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}}
612 Prepare only some modules:
614 \fvset{hllines={, ,}}%
615 \begin{sphinxVerbatim}[commandchars=\\\{\}]
616 \PYG{n}{sat} \PYG{n}{prepare} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{products} \PYG{o}{\PYGZlt{}}\PYG{n}{product1}\PYG{o}{\PYGZgt{}}\PYG{p}{,}\PYG{o}{\PYGZlt{}}\PYG{n}{product2}\PYG{o}{\PYGZgt{}} \PYG{o}{.}\PYG{o}{.}\PYG{o}{.}
620 Use \textendash{}force to force to prepare the products in development mode
621 (this will remove the sources and do a new clone/checkout):
623 \fvset{hllines={, ,}}%
624 \begin{sphinxVerbatim}[commandchars=\\\{\}]
625 \PYG{n}{sat} \PYG{n}{prepare} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{force}
629 Use \textendash{}force\_patch to force to apply patch to the products
630 in development mode (otherwise they are not applied):
632 \fvset{hllines={, ,}}%
633 \begin{sphinxVerbatim}[commandchars=\\\{\}]
634 \PYG{n}{sat} \PYG{n}{prepare} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{force\PYGZus{}patch}
640 \subsection{Some useful configuration pathes}
641 \label{\detokenize{commands/prepare:some-useful-configuration-pathes}}
642 Command \sphinxstyleemphasis{sat prepare} uses the \sphinxstyleemphasis{pyconf file configuration} of each product to know how to get the sources.
644 \begin{sphinxadmonition}{note}{Note:}
645 to verify configuration of a product, and get name of this \sphinxstyleemphasis{pyconf files configuration}
647 \fvset{hllines={, ,}}%
648 \begin{sphinxVerbatim}[commandchars=\\\{\}]
649 sat config \PYGZlt{}application\PYGZgt{} \PYGZhy{}\PYGZhy{}info \PYGZlt{}product\PYGZgt{}
651 \end{sphinxadmonition}
654 \sphinxstylestrong{get\_method}: the method to use to prepare the module, possible values are cvs, git, archive, dir.
657 \sphinxstylestrong{git\_info} : (used if get\_method = git) information to prepare sources from git.
660 \sphinxstylestrong{svn\_info} : (used if get\_method = svn) information to prepare sources from cvs.
663 \sphinxstylestrong{cvs\_info} : (used if get\_method = cvs) information to prepare sources from cvs.
666 \sphinxstylestrong{archive\_info} : (used if get\_method = archive) the path to the archive.
669 \sphinxstylestrong{dir\_info} : (used if get\_method = dir) the directory with the sources.
676 \section{Command compile}
677 \label{\detokenize{commands/compile:svn}}\label{\detokenize{commands/compile:command-compile}}\label{\detokenize{commands/compile::doc}}
679 \subsection{Description}
680 \label{\detokenize{commands/compile:description}}
681 The \sphinxstylestrong{compile} command allows compiling the products of a \sphinxhref{http://www.salome-platform.org}{SALOME}%
682 \begin{footnote}[5]\sphinxAtStartFootnote
683 \sphinxnolinkurl{http://www.salome-platform.org}
685 \end{footnote} application.
689 \label{\detokenize{commands/compile:usage}}\begin{itemize}
691 Compile a complete application:
693 \fvset{hllines={, ,}}%
694 \begin{sphinxVerbatim}[commandchars=\\\{\}]
695 \PYG{n}{sat} \PYG{n+nb}{compile} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}}
699 Compile only some products:
701 \fvset{hllines={, ,}}%
702 \begin{sphinxVerbatim}[commandchars=\\\{\}]
703 \PYG{n}{sat} \PYG{n+nb}{compile} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{products} \PYG{o}{\PYGZlt{}}\PYG{n}{product1}\PYG{o}{\PYGZgt{}}\PYG{p}{,}\PYG{o}{\PYGZlt{}}\PYG{n}{product2}\PYG{o}{\PYGZgt{}} \PYG{o}{.}\PYG{o}{.}\PYG{o}{.}
707 Use \sphinxstyleemphasis{sat -t} to duplicate the logs in the terminal (by default the log are stored and displayed with \sphinxstyleemphasis{sat log} command):
709 \fvset{hllines={, ,}}%
710 \begin{sphinxVerbatim}[commandchars=\\\{\}]
711 \PYG{n}{sat} \PYG{o}{\PYGZhy{}}\PYG{n}{t} \PYG{n+nb}{compile} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{products} \PYG{o}{\PYGZlt{}}\PYG{n}{product1}\PYG{o}{\PYGZgt{}}
715 Compile a module and its dependencies:
717 \fvset{hllines={, ,}}%
718 \begin{sphinxVerbatim}[commandchars=\\\{\}]
719 \PYG{n}{sat} \PYG{n+nb}{compile} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{products} \PYG{n}{med} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{with\PYGZus{}fathers}
723 Compile a module and the modules depending on it (for example plugins):
725 \fvset{hllines={, ,}}%
726 \begin{sphinxVerbatim}[commandchars=\\\{\}]
727 \PYG{n}{sat} \PYG{n+nb}{compile} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{products} \PYG{n}{med} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{with\PYGZus{}children}
731 Clean the build and install directories before starting compilation:
733 \fvset{hllines={, ,}}%
734 \begin{sphinxVerbatim}[commandchars=\\\{\}]
735 \PYG{n}{sat} \PYG{n+nb}{compile} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{products} \PYG{n}{GEOM} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{clean\PYGZus{}all}
738 \begin{sphinxadmonition}{note}{Note:}
739 \begin{DUlineblock}{0em}
740 \item[] a warning will be shown if option \sphinxstyleemphasis{\textendash{}products} is missing
741 \item[] (as it will clean everything)
743 \end{sphinxadmonition}
746 Clean only the install directories before starting compilation:
748 \fvset{hllines={, ,}}%
749 \begin{sphinxVerbatim}[commandchars=\\\{\}]
750 \PYG{n}{sat} \PYG{n+nb}{compile} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{clean\PYGZus{}install}
754 Add options for make:
756 \fvset{hllines={, ,}}%
757 \begin{sphinxVerbatim}[commandchars=\\\{\}]
758 \PYG{n}{sat} \PYG{n+nb}{compile} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{products} \PYG{o}{\PYGZlt{}}\PYG{n}{product}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{make\PYGZus{}flags} \PYG{o}{\PYGZlt{}}\PYG{n}{flags}\PYG{o}{\PYGZgt{}}
762 Use the \sphinxstyleemphasis{\textendash{}check} option to execute the unit tests after compilation:
764 \fvset{hllines={, ,}}%
765 \begin{sphinxVerbatim}[commandchars=\\\{\}]
766 \PYG{n}{sat} \PYG{n+nb}{compile} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{check}
770 Remove the build directory after successful compilation (some build directory like qt are big):
772 \fvset{hllines={, ,}}%
773 \begin{sphinxVerbatim}[commandchars=\\\{\}]
774 \PYG{n}{sat} \PYG{n+nb}{compile} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{products} \PYG{n}{qt} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{clean\PYGZus{}build\PYGZus{}after}
778 Stop the compilation as soon as the compilation of a module fails:
780 \fvset{hllines={, ,}}%
781 \begin{sphinxVerbatim}[commandchars=\\\{\}]
782 \PYG{n}{sat} \PYG{n+nb}{compile} \PYG{o}{\PYGZlt{}}\PYG{n}{product}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{stop\PYGZus{}first\PYGZus{}fail}
786 Do not compile, just show if products are installed or not, and where is the installation:
788 \fvset{hllines={, ,}}%
789 \begin{sphinxVerbatim}[commandchars=\\\{\}]
790 \PYG{n}{sat} \PYG{n+nb}{compile} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{show}
796 \subsection{Some useful configuration pathes}
797 \label{\detokenize{commands/compile:some-useful-configuration-pathes}}
798 The way to compile a product is defined in the \sphinxstyleemphasis{pyconf file configuration}.
799 The main options are:
802 \sphinxstylestrong{build\_source} : the method used to build the product (cmake/autotools/script)
805 \sphinxstylestrong{compil\_script} : the compilation script if build\_source is equal to “script”
808 \sphinxstylestrong{cmake\_options} : additional options for cmake.
811 \sphinxstylestrong{nb\_proc} : number of jobs to use with make for this product.
818 \section{Command launcher}
819 \label{\detokenize{commands/launcher:svn}}\label{\detokenize{commands/launcher:command-launcher}}\label{\detokenize{commands/launcher::doc}}
821 \subsection{Description}
822 \label{\detokenize{commands/launcher:description}}
823 The \sphinxstylestrong{launcher} command creates a SALOME launcher, a python script file to start \sphinxhref{http://www.salome-platform.org}{SALOME}%
824 \begin{footnote}[6]\sphinxAtStartFootnote
825 \sphinxnolinkurl{http://www.salome-platform.org}
831 \label{\detokenize{commands/launcher:usage}}\begin{itemize}
835 \fvset{hllines={, ,}}%
836 \begin{sphinxVerbatim}[commandchars=\\\{\}]
837 \PYG{n}{sat} \PYG{n}{launcher} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}}
840 Generate a launcher in the application directory, i.e \sphinxcode{\sphinxupquote{\$APPLICATION.workdir}}.
843 Create a launcher with a given name (default name is \sphinxcode{\sphinxupquote{APPLICATION.profile.launcher\_name}})
845 \fvset{hllines={, ,}}%
846 \begin{sphinxVerbatim}[commandchars=\\\{\}]
847 \PYG{n}{sat} \PYG{n}{launcher} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{name} \PYG{n}{ZeLauncher}
850 The launcher will be called \sphinxstyleemphasis{ZeLauncher}.
853 Set a specific resources catalog:
855 \fvset{hllines={, ,}}%
856 \begin{sphinxVerbatim}[commandchars=\\\{\}]
857 \PYG{n}{sat} \PYG{n}{launcher} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{catalog} \PYG{o}{\PYGZlt{}}\PYG{n}{path} \PYG{n}{of} \PYG{n}{a} \PYG{n}{salome} \PYG{n}{resources} \PYG{n}{catalog}\PYG{o}{\PYGZgt{}}
860 Note that the catalog specified will be copied to the profile directory.
863 Generate the catalog for a list of machines:
865 \fvset{hllines={, ,}}%
866 \begin{sphinxVerbatim}[commandchars=\\\{\}]
867 \PYG{n}{sat} \PYG{n}{launcher} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{gencat} \PYG{o}{\PYGZlt{}}\PYG{n+nb}{list} \PYG{n}{of} \PYG{n}{machines}\PYG{o}{\PYGZgt{}}
870 This will create a catalog by querying each machine (memory, number of processor) with ssh.
873 Generate a mesa launcher (if mesa and llvm are parts of the application). Use this option only if you have to use salome through ssh and have problems with ssh X forwarding of OpengGL modules (like Paravis):
875 \fvset{hllines={, ,}}%
876 \begin{sphinxVerbatim}[commandchars=\\\{\}]
877 \PYG{n}{sat} \PYG{n}{launcher} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{use\PYGZus{}mesa}
883 \subsection{Configuration}
884 \label{\detokenize{commands/launcher:configuration}}
885 Some useful configuration pathes:
888 \sphinxstylestrong{APPLICATION.profile}
891 \sphinxstylestrong{product} : the name of the profile product (the product in charge of holding the application stuff, like logos, splashscreen)
894 \sphinxstylestrong{launcher\_name} : the name of the launcher.
903 \section{Command application}
904 \label{\detokenize{commands/application:svn}}\label{\detokenize{commands/application::doc}}\label{\detokenize{commands/application:command-application}}
906 \subsection{Description}
907 \label{\detokenize{commands/application:description}}
908 The \sphinxstylestrong{application} command creates a virtual \sphinxhref{http://www.salome-platform.org}{SALOME}%
909 \begin{footnote}[7]\sphinxAtStartFootnote
910 \sphinxnolinkurl{http://www.salome-platform.org}
912 \end{footnote} application.
913 Virtual SALOME applications are used to start SALOME when distribution is needed.
917 \label{\detokenize{commands/application:usage}}\begin{itemize}
919 Create an application:
921 \fvset{hllines={, ,}}%
922 \begin{sphinxVerbatim}[commandchars=\\\{\}]
923 \PYG{n}{sat} \PYG{n}{application} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}}
926 Create the virtual application directory in the salomeTool application directory \sphinxcode{\sphinxupquote{\$APPLICATION.workdir}}.
929 Give a name to the application:
931 \fvset{hllines={, ,}}%
932 \begin{sphinxVerbatim}[commandchars=\\\{\}]
933 \PYG{n}{sat} \PYG{n}{application} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{name} \PYG{o}{\PYGZlt{}}\PYG{n}{my\PYGZus{}application\PYGZus{}name}\PYG{o}{\PYGZgt{}}
936 \sphinxstyleemphasis{Remark}: this option overrides the name given in the virtual\_app section of the configuration file \sphinxcode{\sphinxupquote{\$APPLICATION.virtual\_app.name}}.
939 Change the directory where the application is created:
941 \fvset{hllines={, ,}}%
942 \begin{sphinxVerbatim}[commandchars=\\\{\}]
943 \PYG{n}{sat} \PYG{n}{application} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{target} \PYG{o}{\PYGZlt{}}\PYG{n}{my\PYGZus{}application\PYGZus{}directory}\PYG{o}{\PYGZgt{}}
947 Set a specific \sphinxhref{http://www.salome-platform.org}{SALOME}%
948 \begin{footnote}[8]\sphinxAtStartFootnote
949 \sphinxnolinkurl{http://www.salome-platform.org}
951 \end{footnote} resources catalog (it will be used for the distribution of components on distant machines):
953 \fvset{hllines={, ,}}%
954 \begin{sphinxVerbatim}[commandchars=\\\{\}]
955 \PYG{n}{sat} \PYG{n}{application} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{catalog} \PYG{o}{\PYGZlt{}}\PYG{n}{path\PYGZus{}to\PYGZus{}catalog}\PYG{o}{\PYGZgt{}}
958 Note that the catalog specified will be copied to the application directory.
961 Generate the catalog for a list of machines:
963 \fvset{hllines={, ,}}%
964 \begin{sphinxVerbatim}[commandchars=\\\{\}]
965 \PYG{n}{sat} \PYG{n}{application} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{gencat} \PYG{n}{machine1}\PYG{p}{,}\PYG{n}{machine2}\PYG{p}{,}\PYG{n}{machine3}
968 This will create a catalog by querying each machine through ssh protocol (memory, number of processor) with ssh.
971 Generate a mesa application (if mesa and llvm are parts of the application). Use this option only if you have to use salome through ssh and have problems with ssh X forwarding of OpengGL modules (like Paravis):
973 \fvset{hllines={, ,}}%
974 \begin{sphinxVerbatim}[commandchars=\\\{\}]
975 \PYG{n}{sat} \PYG{n}{launcher} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{use\PYGZus{}mesa}
981 \subsection{Some useful configuration pathes}
982 \label{\detokenize{commands/application:some-useful-configuration-pathes}}
983 The virtual application can be configured with the virtual\_app section of the configutation file.
986 \sphinxstylestrong{APPLICATION.virtual\_app}
989 \sphinxstylestrong{name} : name of the launcher (to replace the default runAppli).
992 \sphinxstylestrong{application\_name} : (optional) the name of the virtual application directory, if missing the default value is \sphinxcode{\sphinxupquote{\$name + \_appli}}.
1001 \section{Command log}
1002 \label{\detokenize{commands/log:svn}}\label{\detokenize{commands/log:command-log}}\label{\detokenize{commands/log::doc}}
1004 \subsection{Description}
1005 \label{\detokenize{commands/log:description}}
1006 The \sphinxstylestrong{log} command displays sat log in a web browser or in a terminal.
1010 \label{\detokenize{commands/log:usage}}\begin{itemize}
1012 Show (in a web browser) the log of the commands corresponding to an application:
1014 \fvset{hllines={, ,}}%
1015 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1016 \PYG{n}{sat} \PYG{n}{log} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}}
1017 \end{sphinxVerbatim}
1020 Show the log for commands that do not use any application:
1022 \fvset{hllines={, ,}}%
1023 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1024 \PYG{n}{sat} \PYG{n}{log}
1025 \end{sphinxVerbatim}
1028 The \textendash{}terminal (or -t) display the log directly in the terminal, through a \sphinxhref{https://en.wikipedia.org/wiki/Command-line\_interface}{CLI}%
1029 \begin{footnote}[9]\sphinxAtStartFootnote
1030 \sphinxnolinkurl{https://en.wikipedia.org/wiki/Command-line\_interface}
1032 \end{footnote} interactive menu:
1034 \fvset{hllines={, ,}}%
1035 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1036 \PYG{n}{sat} \PYG{n}{log} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{terminal}
1037 \end{sphinxVerbatim}
1040 The \textendash{}last option displays only the last command:
1042 \fvset{hllines={, ,}}%
1043 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1044 \PYG{n}{sat} \PYG{n}{log} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{last}
1045 \end{sphinxVerbatim}
1048 To access the last compilation log in terminal mode, use \textendash{}last\_terminal option:
1050 \fvset{hllines={, ,}}%
1051 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1052 \PYG{n}{sat} \PYG{n}{log} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{last\PYGZus{}terminal}
1053 \end{sphinxVerbatim}
1056 The \textendash{}clean (int) option erases the n older log files and print the number of remaining log files:
1058 \fvset{hllines={, ,}}%
1059 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1060 \PYG{n}{sat} \PYG{n}{log} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{clean} \PYG{l+m+mi}{50}
1061 \end{sphinxVerbatim}
1066 \subsection{Some useful configuration pathes}
1067 \label{\detokenize{commands/log:some-useful-configuration-pathes}}\begin{itemize}
1069 \sphinxstylestrong{USER}
1072 \sphinxstylestrong{browser} : The browser used to show the log (by default \sphinxstyleemphasis{firefox}).
1075 \sphinxstylestrong{log\_dir} : The directory used to store the log files.
1084 \section{Command environ}
1085 \label{\detokenize{commands/environ:svn}}\label{\detokenize{commands/environ:command-environ}}\label{\detokenize{commands/environ::doc}}
1087 \subsection{Description}
1088 \label{\detokenize{commands/environ:description}}
1089 The \sphinxstylestrong{environ} command generates the environment files used
1090 to run and compile your application (as \sphinxhref{http://www.salome-platform.org}{SALOME}%
1091 \begin{footnote}[10]\sphinxAtStartFootnote
1092 \sphinxnolinkurl{http://www.salome-platform.org}
1094 \end{footnote} is an example).
1096 \begin{sphinxadmonition}{note}{Note:}
1097 these files are \sphinxstylestrong{not} required,
1098 salomeTool set the environment himself, when compiling.
1099 And so does the salome launcher.
1101 These files are useful when someone wants to check the environment.
1102 They could be used in debug mode to set the environment for \sphinxstyleemphasis{gdb}.
1103 \end{sphinxadmonition}
1105 The configuration part at the end of this page explains how
1106 to specify the environment used by sat (at build or run time),
1107 and saved in some files by \sphinxstyleemphasis{sat environ} command.
1111 \label{\detokenize{commands/environ:usage}}\begin{itemize}
1113 Create the shell environment files of the application:
1115 \fvset{hllines={, ,}}%
1116 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1117 \PYG{n}{sat} \PYG{n}{environ} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}}
1118 \end{sphinxVerbatim}
1121 Create the environment files of the application for a given shell.
1122 Options are bash, bat (for windows) and cfg (the configuration format used by \sphinxhref{http://www.salome-platform.org}{SALOME}%
1123 \begin{footnote}[11]\sphinxAtStartFootnote
1124 \sphinxnolinkurl{http://www.salome-platform.org}
1128 \fvset{hllines={, ,}}%
1129 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1130 \PYG{n}{sat} \PYG{n}{environ} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{shell} \PYG{p}{[}\PYG{n}{bash}\PYG{o}{\textbar{}}\PYG{n}{cfg}\PYG{o}{\textbar{}}\PYG{n+nb}{all}\PYG{p}{]}
1131 \end{sphinxVerbatim}
1134 Use a different prefix for the files (default is ‘env’):
1136 \fvset{hllines={, ,}}%
1137 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1138 \PYG{c+c1}{\PYGZsh{} This will create file \PYGZlt{}prefix\PYGZgt{}\PYGZus{}launch.sh, \PYGZlt{}prefix\PYGZgt{}\PYGZus{}build.sh}
1139 sat environ \PYGZlt{}application\PYGZgt{} \PYGZhy{}\PYGZhy{}prefix \PYGZlt{}prefix\PYGZgt{}
1140 \end{sphinxVerbatim}
1143 Use a different target directory for the files:
1145 \fvset{hllines={, ,}}%
1146 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1147 \PYG{c+c1}{\PYGZsh{} This will create file env\PYGZus{}launch.sh, env\PYGZus{}build.sh}
1148 \PYG{c+c1}{\PYGZsh{} in the directory corresponding to \PYGZlt{}path\PYGZgt{}}
1149 sat environ \PYGZlt{}application\PYGZgt{} \PYGZhy{}\PYGZhy{}target \PYGZlt{}path\PYGZgt{}
1150 \end{sphinxVerbatim}
1153 Generate the environment files only with the given products:
1155 \fvset{hllines={, ,}}%
1156 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1157 \PYG{c+c1}{\PYGZsh{} This will create the environment files only for the given products}
1158 \PYG{c+c1}{\PYGZsh{} and their prerequisites.}
1159 \PYG{c+c1}{\PYGZsh{} It is useful when you want to visualise which environment uses}
1160 \PYG{c+c1}{\PYGZsh{} sat to compile a given product.}
1161 sat environ \PYGZlt{}application\PYGZgt{} \PYGZhy{}\PYGZhy{}product \PYGZlt{}product1\PYGZgt{},\PYGZlt{}product2\PYGZgt{}, ...
1162 \end{sphinxVerbatim}
1167 \subsection{Configuration}
1168 \label{\detokenize{commands/environ:configuration}}
1169 The specification of the environment can be done through several mechanisms.
1172 For salome products (the products with the property \sphinxcode{\sphinxupquote{is\_SALOME\_module}} as \sphinxcode{\sphinxupquote{yes}}) the environment is set automatically by sat, in respect with \sphinxhref{http://www.salome-platform.org}{SALOME}%
1173 \begin{footnote}[12]\sphinxAtStartFootnote
1174 \sphinxnolinkurl{http://www.salome-platform.org}
1176 \end{footnote} requirements.
1179 For other products, the environment is set with the use of the environ section within the pyconf file of the product. The user has two possibilities, either set directly the environment within the section, or specify a python script which wil be used to set the environment programmatically.
1183 Within the section, the user can define environment variables. He can also modify PATH variables, by appending or prepending directories.
1184 In the following example, we prepend \sphinxstyleemphasis{\textless{}install\_dir\textgreater{}/lib} to \sphinxcode{\sphinxupquote{LD\_LIBRARY\_PATH}} (note the \sphinxstyleemphasis{left first} underscore), append \sphinxstyleemphasis{\textless{}install\_dir\textgreater{}/lib} to \sphinxcode{\sphinxupquote{PYTHONPATH}} (note the \sphinxstyleemphasis{right last} underscore), and set \sphinxcode{\sphinxupquote{LAPACK\_ROOT\_DIR}} to \sphinxstyleemphasis{\textless{}install\_dir\textgreater{}}:
1186 \fvset{hllines={, ,}}%
1187 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1190 \PYGZus{}LD\PYGZus{}LIBRARY\PYGZus{}PATH : \PYG{n+nv}{\PYGZdl{}install\PYGZus{}dir} + \PYG{n+nv}{\PYGZdl{}VARS}.sep + \PYG{l+s+s2}{\PYGZdq{}lib\PYGZdq{}}
1191 PYTHONPATH\PYGZus{} : \PYG{n+nv}{\PYGZdl{}install\PYGZus{}dir} + \PYG{n+nv}{\PYGZdl{}VARS}.sep + \PYG{l+s+s2}{\PYGZdq{}lib\PYGZdq{}}
1192 LAPACK\PYGZus{}ROOT\PYGZus{}DIR : \PYG{n+nv}{\PYGZdl{}install\PYGZus{}dir}
1194 \end{sphinxVerbatim}
1196 It is possible to distinguish the build environment from the launch environment: use a subsection called \sphinxstyleemphasis{build} or \sphinxstyleemphasis{launch}. In the example below, \sphinxcode{\sphinxupquote{LD\_LIBRARY\_PATH}} and \sphinxcode{\sphinxupquote{PYTHONPATH}} are only modified at run time, not at compile time:
1198 \fvset{hllines={, ,}}%
1199 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1204 LAPACK\PYGZus{}ROOT\PYGZus{}DIR : \PYG{n+nv}{\PYGZdl{}install\PYGZus{}dir}
1208 LAPACK\PYGZus{}ROOT\PYGZus{}DIR : \PYG{n+nv}{\PYGZdl{}install\PYGZus{}dir}
1209 \PYGZus{}LD\PYGZus{}LIBRARY\PYGZus{}PATH : \PYG{n+nv}{\PYGZdl{}install\PYGZus{}dir} + \PYG{n+nv}{\PYGZdl{}VARS}.sep + \PYG{l+s+s2}{\PYGZdq{}lib\PYGZdq{}}
1210 PYTHONPATH\PYGZus{} : \PYG{n+nv}{\PYGZdl{}install\PYGZus{}dir} + \PYG{n+nv}{\PYGZdl{}VARS}.sep + \PYG{l+s+s2}{\PYGZdq{}lib\PYGZdq{}}
1213 \end{sphinxVerbatim}
1215 \setcounter{enumi}{2}
1217 The last possibility is to set the environment with a python script. The script should be provided in the \sphinxstyleemphasis{products/env\_scripts} directory of the sat project, and its name is specified in the environment section with the key \sphinxcode{\sphinxupquote{environ.env\_script}}:
1221 \fvset{hllines={, ,}}%
1222 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1223 \PYG{n}{environ} \PYG{p}{:}
1225 \PYG{n}{env\PYGZus{}script} \PYG{p}{:} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{lapack.py}\PYG{l+s+s1}{\PYGZsq{}}
1227 \end{sphinxVerbatim}
1229 Please note that the two modes are complementary and are both taken into account.
1230 Most of the time, the first mode is sufficient.
1232 The second mode can be used when the environment has to be set programmatically.
1233 The developer implements a handle (as a python method)
1234 which is called by sat to set the environment.
1237 \fvset{hllines={, ,}}%
1238 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1239 \PYG{c+ch}{\PYGZsh{}!/usr/bin/env python}
1240 \PYG{c+c1}{\PYGZsh{}\PYGZhy{}*\PYGZhy{} coding:utf\PYGZhy{}8 \PYGZhy{}*\PYGZhy{}}
1242 \PYG{k+kn}{import} \PYG{n+nn}{os.path}
1243 \PYG{k+kn}{import} \PYG{n+nn}{platform}
1245 \PYG{k}{def} \PYG{n+nf}{set\PYGZus{}env}\PYG{p}{(}\PYG{n}{env}\PYG{p}{,} \PYG{n}{prereq\PYGZus{}dir}\PYG{p}{,} \PYG{n}{version}\PYG{p}{)}\PYG{p}{:}
1246 \PYG{n}{env}\PYG{o}{.}\PYG{n}{set}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}}\PYG{l+s+s2}{TRUST\PYGZus{}ROOT\PYGZus{}DIR}\PYG{l+s+s2}{\PYGZdq{}}\PYG{p}{,}\PYG{n}{prereq\PYGZus{}dir}\PYG{p}{)}
1247 \PYG{n}{env}\PYG{o}{.}\PYG{n}{prepend}\PYG{p}{(}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{PATH}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYG{n}{os}\PYG{o}{.}\PYG{n}{path}\PYG{o}{.}\PYG{n}{join}\PYG{p}{(}\PYG{n}{prereq\PYGZus{}dir}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{bin}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{)}\PYG{p}{)}
1248 \PYG{n}{env}\PYG{o}{.}\PYG{n}{prepend}\PYG{p}{(}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{PATH}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYG{n}{os}\PYG{o}{.}\PYG{n}{path}\PYG{o}{.}\PYG{n}{join}\PYG{p}{(}\PYG{n}{prereq\PYGZus{}dir}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{include}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{)}\PYG{p}{)}
1249 \PYG{n}{env}\PYG{o}{.}\PYG{n}{prepend}\PYG{p}{(}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{LD\PYGZus{}LIBRARY\PYGZus{}PATH}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYG{n}{os}\PYG{o}{.}\PYG{n}{path}\PYG{o}{.}\PYG{n}{join}\PYG{p}{(}\PYG{n}{prereq\PYGZus{}dir}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{lib}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{)}\PYG{p}{)}
1251 \end{sphinxVerbatim}
1253 SalomeTools defines four handles:
1256 \sphinxstylestrong{set\_env(env, prereq\_dir, version)} : used at build and run time.
1259 \sphinxstylestrong{set\_env\_launch(env, prereq\_dir, version)} : used only at run time (if defined!)
1262 \sphinxstylestrong{set\_env\_build(env, prereq\_dir, version)} : used only at build time (if defined!)
1265 \sphinxstylestrong{set\_native\_env(env)} : used only for native products, at build and run time.
1272 \section{Command clean}
1273 \label{\detokenize{commands/clean:svn}}\label{\detokenize{commands/clean:command-clean}}\label{\detokenize{commands/clean::doc}}
1275 \subsection{Description}
1276 \label{\detokenize{commands/clean:description}}
1277 The \sphinxstylestrong{clean} command removes products in the \sphinxstyleemphasis{source, build, or install} directories of an application. Theses directories are usually named \sphinxcode{\sphinxupquote{SOURCES, BUILD, INSTALL}}.
1279 Use the options to define what directories you want to suppress and to set the list of products
1283 \label{\detokenize{commands/clean:usage}}\begin{itemize}
1285 Clean all previously created \sphinxstyleemphasis{build} and \sphinxstyleemphasis{install} directories (example application as \sphinxstyleemphasis{SALOME\_xx}):
1287 \fvset{hllines={, ,}}%
1288 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1289 \PYG{c+c1}{\PYGZsh{} take care, is long time to restore, sometimes}
1290 sat clean SALOME\PYGZhy{}xx \PYGZhy{}\PYGZhy{}build \PYGZhy{}\PYGZhy{}install
1291 \end{sphinxVerbatim}
1294 Clean previously created \sphinxstyleemphasis{build} and \sphinxstyleemphasis{install} directories, only for products with property \sphinxstyleemphasis{is\_salome\_module}:
1296 \fvset{hllines={, ,}}%
1297 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1298 sat clean SALOME\PYGZhy{}xxx \PYGZhy{}\PYGZhy{}build \PYGZhy{}\PYGZhy{}install \PYG{l+s+se}{\PYGZbs{}}
1299 \PYGZhy{}\PYGZhy{}properties is\PYGZus{}salome\PYGZus{}module:yes
1300 \end{sphinxVerbatim}
1305 \subsection{Availables options}
1306 \label{\detokenize{commands/clean:availables-options}}\begin{itemize}
1308 \sphinxstylestrong{\textendash{}products} : Products to clean.
1311 \sphinxstylestrong{\textendash{}properties} :
1313 \begin{DUlineblock}{0em}
1314 \item[] Filter the products by their properties.
1315 \item[] Syntax: \sphinxstyleemphasis{\textendash{}properties \textless{}property\textgreater{}:\textless{}value\textgreater{}}
1319 \sphinxstylestrong{\textendash{}sources} : Clean the product source directories.
1322 \sphinxstylestrong{\textendash{}build} : Clean the product build directories.
1325 \sphinxstylestrong{\textendash{}install} : Clean the product install directories.
1328 \sphinxstylestrong{\textendash{}all} : Clean the product source, build and install directories.
1331 \sphinxstylestrong{\textendash{}sources\_without\_dev} :
1333 \begin{DUlineblock}{0em}
1334 \item[] Do not clean the products in development mode,
1335 \item[] (they could have \sphinxhref{https://en.wikipedia.org/wiki/Version\_control}{VCS}%
1336 \begin{footnote}[13]\sphinxAtStartFootnote
1337 \sphinxnolinkurl{https://en.wikipedia.org/wiki/Version\_control}
1339 \end{footnote} commits pending).
1345 \subsection{Some useful configuration pathes}
1346 \label{\detokenize{commands/clean:some-useful-configuration-pathes}}
1347 No specific configuration.
1352 \section{Command package}
1353 \label{\detokenize{commands/package:svn}}\label{\detokenize{commands/package:command-package}}\label{\detokenize{commands/package::doc}}
1355 \subsection{Description}
1356 \label{\detokenize{commands/package:description}}
1357 The \sphinxstylestrong{package} command creates a \sphinxhref{http://www.salome-platform.org}{SALOME}%
1358 \begin{footnote}[14]\sphinxAtStartFootnote
1359 \sphinxnolinkurl{http://www.salome-platform.org}
1361 \end{footnote} archive (usually a compressed \sphinxhref{https://en.wikipedia.org/wiki/Tar\_(computing)}{Tar}%
1362 \begin{footnote}[15]\sphinxAtStartFootnote
1363 \sphinxnolinkurl{https://en.wikipedia.org/wiki/Tar\_(computing)}
1365 \end{footnote} file .tgz).
1366 This tar file is used later to intall SALOME on other remote computer.
1368 Depending on the selected options, the archive includes sources and binaries
1369 of SALOME products and prerequisites.
1371 Usually utility \sphinxstyleemphasis{salomeTools} is included in the archive.
1373 \begin{sphinxadmonition}{note}{Note:}
1374 By default the package includes the sources of prerequisites and products.
1375 To select a subset use the \sphinxstyleemphasis{\textendash{}without\_property} or \sphinxstyleemphasis{\textendash{}with\_vcs} options.
1376 \end{sphinxadmonition}
1380 \label{\detokenize{commands/package:usage}}\begin{itemize}
1382 Create a package for a product (example as \sphinxstyleemphasis{SALOME\_xx}):
1384 \fvset{hllines={, ,}}%
1385 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1386 \PYG{n}{sat} \PYG{n}{package} \PYG{n}{SALOME\PYGZus{}xx}
1387 \end{sphinxVerbatim}
1389 This command will create an archive named \sphinxcode{\sphinxupquote{SALOME\_xx.tgz}}
1390 in the working directory (\sphinxcode{\sphinxupquote{USER.workDir}}).
1391 If the archive already exists, do nothing.
1394 Create a package with a specific name:
1396 \fvset{hllines={, ,}}%
1397 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1398 \PYG{n}{sat} \PYG{n}{package} \PYG{n}{SALOME\PYGZus{}xx} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{name} \PYG{n}{YourSpecificName}
1399 \end{sphinxVerbatim}
1403 \begin{sphinxadmonition}{note}{Note:}
1404 By default, the archive is created in the working directory of the user (\sphinxcode{\sphinxupquote{USER.workDir}}).
1406 If the option \sphinxstyleemphasis{\textendash{}name} is used with a path (relative or absolute) it will be used.
1408 If the option \sphinxstyleemphasis{\textendash{}name} is not used and binaries (prerequisites and products)
1409 are included in the package, the \sphinxhref{https://en.wikipedia.org/wiki/Operating\_system}{OS}%
1410 \begin{footnote}[16]\sphinxAtStartFootnote
1411 \sphinxnolinkurl{https://en.wikipedia.org/wiki/Operating\_system}
1413 \end{footnote} architecture
1414 will be appended to the name (example: \sphinxcode{\sphinxupquote{SALOME\_xx-CO7.tgz}}).
1418 \fvset{hllines={, ,}}%
1419 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1420 \PYG{c+c1}{\PYGZsh{} Creates SALOME\PYGZus{}xx.tgz in \PYGZdl{}USER.workDir}
1421 \PYG{n}{sat} \PYG{n}{package} \PYG{n}{SALOME\PYGZus{}xx}
1423 \PYG{c+c1}{\PYGZsh{} Creates SALOME\PYGZus{}xx\PYGZus{}\PYGZlt{}arch\PYGZgt{}.tgz in \PYGZdl{}USER.workDir}
1424 \PYG{n}{sat} \PYG{n}{package} \PYG{n}{SALOME\PYGZus{}xx} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{binaries}
1426 \PYG{c+c1}{\PYGZsh{} Creates MySpecificName.tgz in \PYGZdl{}USER.workDir}
1427 \PYG{n}{sat} \PYG{n}{package} \PYG{n}{SALOME\PYGZus{}xx} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{name} \PYG{n}{MySpecificName}
1428 \end{sphinxVerbatim}
1429 \end{sphinxadmonition}
1432 Force the creation of the archive (if it already exists):
1434 \fvset{hllines={, ,}}%
1435 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1436 \PYG{n}{sat} \PYG{n}{package} \PYG{n}{SALOME\PYGZus{}xx} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{force}
1437 \end{sphinxVerbatim}
1440 Include the binaries in the archive (products and prerequisites):
1442 \fvset{hllines={, ,}}%
1443 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1444 \PYG{n}{sat} \PYG{n}{package} \PYG{n}{SALOME\PYGZus{}xx} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{binaries}
1445 \end{sphinxVerbatim}
1447 This command will create an archive named \sphinxcode{\sphinxupquote{SALOME\_xx \_\textless{}arch\textgreater{}.tgz}}
1448 where \textless{}arch\textgreater{} is the \sphinxhref{https://en.wikipedia.org/wiki/Operating\_system}{OS}%
1449 \begin{footnote}[17]\sphinxAtStartFootnote
1450 \sphinxnolinkurl{https://en.wikipedia.org/wiki/Operating\_system}
1452 \end{footnote} architecture of the machine.
1455 Do not delete Version Control System (\sphinxhref{https://en.wikipedia.org/wiki/Version\_control}{VCS}%
1456 \begin{footnote}[18]\sphinxAtStartFootnote
1457 \sphinxnolinkurl{https://en.wikipedia.org/wiki/Version\_control}
1459 \end{footnote}) informations from the configurations files of the embedded salomeTools:
1461 \fvset{hllines={, ,}}%
1462 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1463 \PYG{n}{sat} \PYG{n}{package} \PYG{n}{SALOME\PYGZus{}xx} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{with\PYGZus{}vcs}
1464 \end{sphinxVerbatim}
1466 The version control systems known by this option are \sphinxhref{https://fr.wikipedia.org/wiki/Concurrent\_versions\_system}{CVS}%
1467 \begin{footnote}[19]\sphinxAtStartFootnote
1468 \sphinxnolinkurl{https://fr.wikipedia.org/wiki/Concurrent\_versions\_system}
1470 \end{footnote}, \sphinxhref{https://en.wikipedia.org/wiki/Apache\_Subversion}{SVN}%
1471 \begin{footnote}[20]\sphinxAtStartFootnote
1472 \sphinxnolinkurl{https://en.wikipedia.org/wiki/Apache\_Subversion}
1474 \end{footnote} and \sphinxhref{https://git-scm.com}{Git}%
1475 \begin{footnote}[21]\sphinxAtStartFootnote
1476 \sphinxnolinkurl{https://git-scm.com}
1483 \subsection{Some useful configuration pathes}
1484 \label{\detokenize{commands/package:some-useful-configuration-pathes}}
1485 No specific configuration.
1490 \section{Command generate}
1491 \label{\detokenize{commands/generate:svn}}\label{\detokenize{commands/generate:command-generate}}\label{\detokenize{commands/generate::doc}}
1493 \subsection{Description}
1494 \label{\detokenize{commands/generate:description}}
1495 The \sphinxstylestrong{generate} command generates and compile SALOME modules from cpp modules using YACSGEN.
1497 \begin{sphinxadmonition}{note}{Note:}
1498 This command uses YACSGEN to generate the module. It needs to be specified with \sphinxstyleemphasis{\textendash{}yacsgen} option, or defined in the product or by the environment variable \sphinxcode{\sphinxupquote{\$YACSGEN\_ROOT\_DIR}}.
1499 \end{sphinxadmonition}
1502 \subsection{Remarks}
1503 \label{\detokenize{commands/generate:remarks}}\begin{itemize}
1505 This command will only apply on the CPP modules of the application, those who have both properties:
1507 \fvset{hllines={, ,}}%
1508 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1509 \PYG{n}{cpp} \PYG{p}{:} \PYG{l+s+s2}{\PYGZdq{}}\PYG{l+s+s2}{yes}\PYG{l+s+s2}{\PYGZdq{}}
1510 \PYG{n}{generate} \PYG{p}{:} \PYG{l+s+s2}{\PYGZdq{}}\PYG{l+s+s2}{yes}\PYG{l+s+s2}{\PYGZdq{}}
1511 \end{sphinxVerbatim}
1514 The cpp module are usually computational components, and the generated module brings the CORBA layer which allows distributing the compononent on remore machines. cpp modules should conform to YACSGEN/hxx2salome requirements (please refer to YACSGEN documentation)
1520 \label{\detokenize{commands/generate:usage}}\begin{itemize}
1522 Generate all the modules of a product:
1524 \fvset{hllines={, ,}}%
1525 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1526 \PYG{n}{sat} \PYG{n}{generate} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}}
1527 \end{sphinxVerbatim}
1530 Generate only specific modules:
1532 \fvset{hllines={, ,}}%
1533 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1534 \PYG{n}{sat} \PYG{n}{generate} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{products} \PYG{o}{\PYGZlt{}}\PYG{n}{list\PYGZus{}of\PYGZus{}products}\PYG{o}{\PYGZgt{}}
1535 \end{sphinxVerbatim}
1537 Remark: modules which don’t have the \sphinxstyleemphasis{generate} property are ignored.
1540 Use a specific version of YACSGEN:
1542 \fvset{hllines={, ,}}%
1543 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1544 \PYG{n}{sat} \PYG{n}{generate} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{yacsgen} \PYG{o}{\PYGZlt{}}\PYG{n}{path\PYGZus{}to\PYGZus{}yacsgen}\PYG{o}{\PYGZgt{}}
1545 \end{sphinxVerbatim}
1550 \chapter{Developer documentation}
1551 \label{\detokenize{index:developer-documentation}}
1555 \section{Add a user custom command}
1556 \label{\detokenize{write_command:svn}}\label{\detokenize{write_command:add-a-user-custom-command}}\label{\detokenize{write_command::doc}}
1558 \subsection{Introduction}
1559 \label{\detokenize{write_command:introduction}}
1560 \begin{sphinxadmonition}{note}{Note:}
1561 This documentation is for \sphinxhref{https://docs.python.org/2.7}{Python}%
1562 \begin{footnote}[22]\sphinxAtStartFootnote
1563 \sphinxnolinkurl{https://docs.python.org/2.7}
1565 \end{footnote} developers.
1566 \end{sphinxadmonition}
1568 The salomeTools product provides a simple way to develop commands.
1569 The first thing to do is to add a file with \sphinxstyleemphasis{.py} extension in the \sphinxcode{\sphinxupquote{commands}} directory of salomeTools.
1571 Here are the basic requirements that must be followed in this file in order to add a command.
1574 \subsection{Basic requirements}
1575 \label{\detokenize{write_command:basic-requirements}}
1576 By adding a file \sphinxstyleemphasis{mycommand.py} in the \sphinxcode{\sphinxupquote{commands}} directory, salomeTools will define a new command named \sphinxcode{\sphinxupquote{mycommand}}.
1578 In \sphinxstyleemphasis{mycommand.py}, there must be the following method:
1580 \fvset{hllines={, ,}}%
1581 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1582 \PYG{k}{def} \PYG{n+nf}{run}\PYG{p}{(}\PYG{n}{args}\PYG{p}{,} \PYG{n}{runner}\PYG{p}{,} \PYG{n}{logger}\PYG{p}{)}\PYG{p}{:}
1583 \PYG{c+c1}{\PYGZsh{} your algorithm ...}
1585 \end{sphinxVerbatim}
1587 In fact, at this point, the command will already be functional.
1588 But there are some useful services provided by salomeTools :
1591 You can give some options to your command:
1595 \fvset{hllines={, ,}}%
1596 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1597 \PYG{k+kn}{import} \PYG{n+nn}{src}
1599 \PYG{c+c1}{\PYGZsh{} Define all possible option for mycommand command : \PYGZsq{}sat mycommand \PYGZlt{}options\PYGZgt{}\PYGZsq{}}
1600 \PYG{n}{parser} \PYG{o}{=} \PYG{n}{src}\PYG{o}{.}\PYG{n}{options}\PYG{o}{.}\PYG{n}{Options}\PYG{p}{(}\PYG{p}{)}
1601 \PYG{n}{parser}\PYG{o}{.}\PYG{n}{add\PYGZus{}option}\PYG{p}{(}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{m}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{myoption}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYGZbs{}
1602 \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{boolean}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{myoption}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYGZbs{}
1603 \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{My option changes the behavior of my command.}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{)}
1605 \PYG{k}{def} \PYG{n+nf}{run}\PYG{p}{(}\PYG{n}{args}\PYG{p}{,} \PYG{n}{runner}\PYG{p}{,} \PYG{n}{logger}\PYG{p}{)}\PYG{p}{:}
1606 \PYG{c+c1}{\PYGZsh{} Parse the options}
1607 \PYG{p}{(}\PYG{n}{options}\PYG{p}{,} \PYG{n}{args}\PYG{p}{)} \PYG{o}{=} \PYG{n}{parser}\PYG{o}{.}\PYG{n}{parse\PYGZus{}args}\PYG{p}{(}\PYG{n}{args}\PYG{p}{)}
1608 \PYG{c+c1}{\PYGZsh{} algorithm}
1609 \end{sphinxVerbatim}
1612 You can add a \sphinxstyleemphasis{description} method that will display a message when the user will call the help:
1616 \fvset{hllines={, 9, 10,}}%
1617 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1618 \PYG{k+kn}{import} \PYG{n+nn}{src}
1620 \PYG{c+c1}{\PYGZsh{} Define all possible option for mycommand command : \PYGZsq{}sat mycommand \PYGZlt{}options\PYGZgt{}\PYGZsq{}}
1621 \PYG{n}{parser} \PYG{o}{=} \PYG{n}{src}\PYG{o}{.}\PYG{n}{options}\PYG{o}{.}\PYG{n}{Options}\PYG{p}{(}\PYG{p}{)}
1622 \PYG{n}{parser}\PYG{o}{.}\PYG{n}{add\PYGZus{}option}\PYG{p}{(}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{m}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{myoption}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYGZbs{}
1623 \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{boolean}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{myoption}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYGZbs{}
1624 \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{My option changes the behavior of my command.}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{)}
1626 \PYG{k}{def} \PYG{n+nf}{description}\PYG{p}{(}\PYG{p}{)}\PYG{p}{:}
1627 \PYG{k}{return} \PYG{n}{\PYGZus{}}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}}\PYG{l+s+s2}{The help of mycommand.}\PYG{l+s+s2}{\PYGZdq{}}\PYG{p}{)}
1629 \PYG{k}{def} \PYG{n+nf}{run}\PYG{p}{(}\PYG{n}{args}\PYG{p}{,} \PYG{n}{runner}\PYG{p}{,} \PYG{n}{logger}\PYG{p}{)}\PYG{p}{:}
1630 \PYG{c+c1}{\PYGZsh{} Parse the options}
1631 \PYG{p}{(}\PYG{n}{options}\PYG{p}{,} \PYG{n}{args}\PYG{p}{)} \PYG{o}{=} \PYG{n}{parser}\PYG{o}{.}\PYG{n}{parse\PYGZus{}args}\PYG{p}{(}\PYG{n}{args}\PYG{p}{)}
1632 \PYG{c+c1}{\PYGZsh{} algorithm}
1633 \end{sphinxVerbatim}
1636 \subsection{HowTo access salomeTools config and other commands}
1637 \label{\detokenize{write_command:howto-access-salometools-config-and-other-commands}}
1638 The \sphinxstyleemphasis{runner} variable is an python instance of \sphinxstyleemphasis{Sat} class.
1639 It gives access to \sphinxstyleemphasis{runner.cfg} which is the data model defined from all
1640 \sphinxstyleemphasis{configuration pyconf files} of salomeTools
1641 For example, \sphinxstyleemphasis{runner.cfg.APPLICATION.workdir}
1642 contains the root directory of the current application.
1644 The \sphinxstyleemphasis{runner} variable gives also access to other commands of salomeTools:
1646 \fvset{hllines={, ,}}%
1647 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1648 \PYG{c+c1}{\PYGZsh{} as CLI\PYGZus{} \PYGZsq{}sat prepare ...\PYGZsq{}}
1649 \PYG{n}{runner}\PYG{o}{.}\PYG{n}{prepare}\PYG{p}{(}\PYG{n}{runner}\PYG{o}{.}\PYG{n}{cfg}\PYG{o}{.}\PYG{n}{VARS}\PYG{o}{.}\PYG{n}{application}\PYG{p}{)}
1650 \end{sphinxVerbatim}
1653 \subsection{HowTo logger}
1654 \label{\detokenize{write_command:howto-logger}}
1655 The logger variable is an instance of the Logger class.
1656 It gives access to the write method.
1658 When this method is called, the message passed as parameter
1659 will be displayed in the terminal and written in an xml log file.
1661 \fvset{hllines={, ,}}%
1662 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1663 \PYG{n}{logger}\PYG{o}{.}\PYG{n}{write}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}}\PYG{l+s+s2}{My message}\PYG{l+s+s2}{\PYGZdq{}}\PYG{p}{,} \PYG{l+m+mi}{3}\PYG{p}{)} \PYG{c+c1}{\PYGZsh{} 3 as default}
1664 \end{sphinxVerbatim}
1666 The second argument defines the level of verbosity
1667 that is wanted for this message.
1668 It has to be between 1 and 5 (the most verbose level).
1671 \subsection{HELLO example}
1672 \label{\detokenize{write_command:hello-example}}
1673 Here is a \sphinxstyleemphasis{hello} command, file \sphinxstyleemphasis{commands/hello.py}:
1675 \fvset{hllines={, ,}}%
1676 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1677 \PYG{k+kn}{import} \PYG{n+nn}{src}
1679 \PYG{l+s+sd}{\PYGZdq{}\PYGZdq{}\PYGZdq{}}
1680 \PYG{l+s+sd}{hello.py}
1681 \PYG{l+s+sd}{Define all possible options for hello command:}
1682 \PYG{l+s+sd}{sat hello \PYGZlt{}options\PYGZgt{}}
1683 \PYG{l+s+sd}{\PYGZdq{}\PYGZdq{}\PYGZdq{}}
1685 \PYG{n}{parser} \PYG{o}{=} \PYG{n}{src}\PYG{o}{.}\PYG{n}{options}\PYG{o}{.}\PYG{n}{Options}\PYG{p}{(}\PYG{p}{)}
1686 \PYG{n}{parser}\PYG{o}{.}\PYG{n}{add\PYGZus{}option}\PYG{p}{(}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{f}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{french}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{boolean}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{french}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}}\PYG{l+s+s2}{french set hello message in french.}\PYG{l+s+s2}{\PYGZdq{}}\PYG{p}{)}
1688 \PYG{k}{def} \PYG{n+nf}{description}\PYG{p}{(}\PYG{p}{)}\PYG{p}{:}
1689 \PYG{k}{return} \PYG{n}{\PYGZus{}}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}}\PYG{l+s+s2}{The help of hello.}\PYG{l+s+s2}{\PYGZdq{}}\PYG{p}{)}
1691 \PYG{k}{def} \PYG{n+nf}{run}\PYG{p}{(}\PYG{n}{args}\PYG{p}{,} \PYG{n}{runner}\PYG{p}{,} \PYG{n}{logger}\PYG{p}{)}\PYG{p}{:}
1692 \PYG{c+c1}{\PYGZsh{} Parse the options}
1693 \PYG{p}{(}\PYG{n}{options}\PYG{p}{,} \PYG{n}{args}\PYG{p}{)} \PYG{o}{=} \PYG{n}{parser}\PYG{o}{.}\PYG{n}{parse\PYGZus{}args}\PYG{p}{(}\PYG{n}{args}\PYG{p}{)}
1694 \PYG{c+c1}{\PYGZsh{} algorithm}
1695 \PYG{k}{if} \PYG{o+ow}{not} \PYG{n}{options}\PYG{o}{.}\PYG{n}{french}\PYG{p}{:}
1696 \PYG{n}{logger}\PYG{o}{.}\PYG{n}{write}\PYG{p}{(}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{HELLO! WORLD!}\PYG{l+s+se}{\PYGZbs{}n}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{)}
1697 \PYG{k}{else}\PYG{p}{:}
1698 \PYG{n}{logger}\PYG{o}{.}\PYG{n}{write}\PYG{p}{(}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{Bonjour tout le monde!}\PYG{l+s+se}{\PYGZbs{}n}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{)}
1699 \end{sphinxVerbatim}
1701 A first call of hello:
1703 \fvset{hllines={, ,}}%
1704 \begin{sphinxVerbatim}[commandchars=\\\{\}]
1705 \PYG{c+c1}{\PYGZsh{} Get the help of hello:}
1706 ./sat \PYGZhy{}\PYGZhy{}help hello
1708 \PYG{c+c1}{\PYGZsh{} To get bonjour}
1709 ./sat hello \PYGZhy{}\PYGZhy{}french
1710 Bonjour tout le monde!
1712 \PYG{c+c1}{\PYGZsh{} To get hello}
1716 \PYG{c+c1}{\PYGZsh{} To get the log}
1718 \end{sphinxVerbatim}
1721 \chapter{Code documentation}
1722 \label{\detokenize{index:code-documentation}}
1725 \label{\detokenize{commands/apidoc/modules:src}}\label{\detokenize{commands/apidoc/modules::doc}}
1727 \subsection{src package}
1728 \label{\detokenize{commands/apidoc/src::doc}}\label{\detokenize{commands/apidoc/src:src-package}}
1730 \subsubsection{Subpackages}
1731 \label{\detokenize{commands/apidoc/src:subpackages}}
1733 \paragraph{src.colorama package}
1734 \label{\detokenize{commands/apidoc/src.colorama:src-colorama-package}}\label{\detokenize{commands/apidoc/src.colorama::doc}}
1736 \subparagraph{Submodules}
1737 \label{\detokenize{commands/apidoc/src.colorama:submodules}}
1739 \subparagraph{src.colorama.ansi module}
1740 \label{\detokenize{commands/apidoc/src.colorama:module-src.colorama.ansi}}\label{\detokenize{commands/apidoc/src.colorama:src-colorama-ansi-module}}\index{src.colorama.ansi (module)}
1741 This module generates ANSI character codes to printing colors to terminals.
1742 See: \sphinxurl{http://en.wikipedia.org/wiki/ANSI\_escape\_code}
1743 \index{AnsiBack (class in src.colorama.ansi)}
1745 \begin{fulllineitems}
1746 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack}}\pysigline{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.colorama.ansi.}}\sphinxbfcode{\sphinxupquote{AnsiBack}}}
1747 Bases: {\hyperref[\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCodes}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.colorama.ansi.AnsiCodes}}}}} (\autopageref*{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCodes}})
1748 \index{BLACK (src.colorama.ansi.AnsiBack attribute)}
1750 \begin{fulllineitems}
1751 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.BLACK}}\pysigline{\sphinxbfcode{\sphinxupquote{BLACK}}\sphinxbfcode{\sphinxupquote{ = 40}}}
1754 \index{BLUE (src.colorama.ansi.AnsiBack attribute)}
1756 \begin{fulllineitems}
1757 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.BLUE}}\pysigline{\sphinxbfcode{\sphinxupquote{BLUE}}\sphinxbfcode{\sphinxupquote{ = 44}}}
1760 \index{CYAN (src.colorama.ansi.AnsiBack attribute)}
1762 \begin{fulllineitems}
1763 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.CYAN}}\pysigline{\sphinxbfcode{\sphinxupquote{CYAN}}\sphinxbfcode{\sphinxupquote{ = 46}}}
1766 \index{GREEN (src.colorama.ansi.AnsiBack attribute)}
1768 \begin{fulllineitems}
1769 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.GREEN}}\pysigline{\sphinxbfcode{\sphinxupquote{GREEN}}\sphinxbfcode{\sphinxupquote{ = 42}}}
1772 \index{LIGHTBLACK\_EX (src.colorama.ansi.AnsiBack attribute)}
1774 \begin{fulllineitems}
1775 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.LIGHTBLACK_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTBLACK\_EX}}\sphinxbfcode{\sphinxupquote{ = 100}}}
1778 \index{LIGHTBLUE\_EX (src.colorama.ansi.AnsiBack attribute)}
1780 \begin{fulllineitems}
1781 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.LIGHTBLUE_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTBLUE\_EX}}\sphinxbfcode{\sphinxupquote{ = 104}}}
1784 \index{LIGHTCYAN\_EX (src.colorama.ansi.AnsiBack attribute)}
1786 \begin{fulllineitems}
1787 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.LIGHTCYAN_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTCYAN\_EX}}\sphinxbfcode{\sphinxupquote{ = 106}}}
1790 \index{LIGHTGREEN\_EX (src.colorama.ansi.AnsiBack attribute)}
1792 \begin{fulllineitems}
1793 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.LIGHTGREEN_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTGREEN\_EX}}\sphinxbfcode{\sphinxupquote{ = 102}}}
1796 \index{LIGHTMAGENTA\_EX (src.colorama.ansi.AnsiBack attribute)}
1798 \begin{fulllineitems}
1799 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.LIGHTMAGENTA_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTMAGENTA\_EX}}\sphinxbfcode{\sphinxupquote{ = 105}}}
1802 \index{LIGHTRED\_EX (src.colorama.ansi.AnsiBack attribute)}
1804 \begin{fulllineitems}
1805 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.LIGHTRED_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTRED\_EX}}\sphinxbfcode{\sphinxupquote{ = 101}}}
1808 \index{LIGHTWHITE\_EX (src.colorama.ansi.AnsiBack attribute)}
1810 \begin{fulllineitems}
1811 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.LIGHTWHITE_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTWHITE\_EX}}\sphinxbfcode{\sphinxupquote{ = 107}}}
1814 \index{LIGHTYELLOW\_EX (src.colorama.ansi.AnsiBack attribute)}
1816 \begin{fulllineitems}
1817 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.LIGHTYELLOW_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTYELLOW\_EX}}\sphinxbfcode{\sphinxupquote{ = 103}}}
1820 \index{MAGENTA (src.colorama.ansi.AnsiBack attribute)}
1822 \begin{fulllineitems}
1823 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.MAGENTA}}\pysigline{\sphinxbfcode{\sphinxupquote{MAGENTA}}\sphinxbfcode{\sphinxupquote{ = 45}}}
1826 \index{RED (src.colorama.ansi.AnsiBack attribute)}
1828 \begin{fulllineitems}
1829 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.RED}}\pysigline{\sphinxbfcode{\sphinxupquote{RED}}\sphinxbfcode{\sphinxupquote{ = 41}}}
1832 \index{RESET (src.colorama.ansi.AnsiBack attribute)}
1834 \begin{fulllineitems}
1835 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.RESET}}\pysigline{\sphinxbfcode{\sphinxupquote{RESET}}\sphinxbfcode{\sphinxupquote{ = 49}}}
1838 \index{WHITE (src.colorama.ansi.AnsiBack attribute)}
1840 \begin{fulllineitems}
1841 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.WHITE}}\pysigline{\sphinxbfcode{\sphinxupquote{WHITE}}\sphinxbfcode{\sphinxupquote{ = 47}}}
1844 \index{YELLOW (src.colorama.ansi.AnsiBack attribute)}
1846 \begin{fulllineitems}
1847 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.YELLOW}}\pysigline{\sphinxbfcode{\sphinxupquote{YELLOW}}\sphinxbfcode{\sphinxupquote{ = 43}}}
1853 \index{AnsiCodes (class in src.colorama.ansi)}
1855 \begin{fulllineitems}
1856 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCodes}}\pysigline{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.colorama.ansi.}}\sphinxbfcode{\sphinxupquote{AnsiCodes}}}
1857 Bases: \sphinxcode{\sphinxupquote{object}}
1861 \index{AnsiCursor (class in src.colorama.ansi)}
1863 \begin{fulllineitems}
1864 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCursor}}\pysigline{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.colorama.ansi.}}\sphinxbfcode{\sphinxupquote{AnsiCursor}}}
1865 Bases: \sphinxcode{\sphinxupquote{object}}
1866 \index{BACK() (src.colorama.ansi.AnsiCursor method)}
1868 \begin{fulllineitems}
1869 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCursor.BACK}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{BACK}}}{\emph{n=1}}{}
1872 \index{DOWN() (src.colorama.ansi.AnsiCursor method)}
1874 \begin{fulllineitems}
1875 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCursor.DOWN}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{DOWN}}}{\emph{n=1}}{}
1878 \index{FORWARD() (src.colorama.ansi.AnsiCursor method)}
1880 \begin{fulllineitems}
1881 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCursor.FORWARD}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{FORWARD}}}{\emph{n=1}}{}
1884 \index{POS() (src.colorama.ansi.AnsiCursor method)}
1886 \begin{fulllineitems}
1887 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCursor.POS}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{POS}}}{\emph{x=1}, \emph{y=1}}{}
1890 \index{UP() (src.colorama.ansi.AnsiCursor method)}
1892 \begin{fulllineitems}
1893 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCursor.UP}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{UP}}}{\emph{n=1}}{}
1899 \index{AnsiFore (class in src.colorama.ansi)}
1901 \begin{fulllineitems}
1902 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore}}\pysigline{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.colorama.ansi.}}\sphinxbfcode{\sphinxupquote{AnsiFore}}}
1903 Bases: {\hyperref[\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCodes}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.colorama.ansi.AnsiCodes}}}}} (\autopageref*{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCodes}})
1904 \index{BLACK (src.colorama.ansi.AnsiFore attribute)}
1906 \begin{fulllineitems}
1907 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.BLACK}}\pysigline{\sphinxbfcode{\sphinxupquote{BLACK}}\sphinxbfcode{\sphinxupquote{ = 30}}}
1910 \index{BLUE (src.colorama.ansi.AnsiFore attribute)}
1912 \begin{fulllineitems}
1913 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.BLUE}}\pysigline{\sphinxbfcode{\sphinxupquote{BLUE}}\sphinxbfcode{\sphinxupquote{ = 34}}}
1916 \index{CYAN (src.colorama.ansi.AnsiFore attribute)}
1918 \begin{fulllineitems}
1919 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.CYAN}}\pysigline{\sphinxbfcode{\sphinxupquote{CYAN}}\sphinxbfcode{\sphinxupquote{ = 36}}}
1922 \index{GREEN (src.colorama.ansi.AnsiFore attribute)}
1924 \begin{fulllineitems}
1925 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.GREEN}}\pysigline{\sphinxbfcode{\sphinxupquote{GREEN}}\sphinxbfcode{\sphinxupquote{ = 32}}}
1928 \index{LIGHTBLACK\_EX (src.colorama.ansi.AnsiFore attribute)}
1930 \begin{fulllineitems}
1931 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.LIGHTBLACK_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTBLACK\_EX}}\sphinxbfcode{\sphinxupquote{ = 90}}}
1934 \index{LIGHTBLUE\_EX (src.colorama.ansi.AnsiFore attribute)}
1936 \begin{fulllineitems}
1937 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.LIGHTBLUE_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTBLUE\_EX}}\sphinxbfcode{\sphinxupquote{ = 94}}}
1940 \index{LIGHTCYAN\_EX (src.colorama.ansi.AnsiFore attribute)}
1942 \begin{fulllineitems}
1943 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.LIGHTCYAN_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTCYAN\_EX}}\sphinxbfcode{\sphinxupquote{ = 96}}}
1946 \index{LIGHTGREEN\_EX (src.colorama.ansi.AnsiFore attribute)}
1948 \begin{fulllineitems}
1949 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.LIGHTGREEN_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTGREEN\_EX}}\sphinxbfcode{\sphinxupquote{ = 92}}}
1952 \index{LIGHTMAGENTA\_EX (src.colorama.ansi.AnsiFore attribute)}
1954 \begin{fulllineitems}
1955 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.LIGHTMAGENTA_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTMAGENTA\_EX}}\sphinxbfcode{\sphinxupquote{ = 95}}}
1958 \index{LIGHTRED\_EX (src.colorama.ansi.AnsiFore attribute)}
1960 \begin{fulllineitems}
1961 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.LIGHTRED_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTRED\_EX}}\sphinxbfcode{\sphinxupquote{ = 91}}}
1964 \index{LIGHTWHITE\_EX (src.colorama.ansi.AnsiFore attribute)}
1966 \begin{fulllineitems}
1967 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.LIGHTWHITE_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTWHITE\_EX}}\sphinxbfcode{\sphinxupquote{ = 97}}}
1970 \index{LIGHTYELLOW\_EX (src.colorama.ansi.AnsiFore attribute)}
1972 \begin{fulllineitems}
1973 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.LIGHTYELLOW_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTYELLOW\_EX}}\sphinxbfcode{\sphinxupquote{ = 93}}}
1976 \index{MAGENTA (src.colorama.ansi.AnsiFore attribute)}
1978 \begin{fulllineitems}
1979 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.MAGENTA}}\pysigline{\sphinxbfcode{\sphinxupquote{MAGENTA}}\sphinxbfcode{\sphinxupquote{ = 35}}}
1982 \index{RED (src.colorama.ansi.AnsiFore attribute)}
1984 \begin{fulllineitems}
1985 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.RED}}\pysigline{\sphinxbfcode{\sphinxupquote{RED}}\sphinxbfcode{\sphinxupquote{ = 31}}}
1988 \index{RESET (src.colorama.ansi.AnsiFore attribute)}
1990 \begin{fulllineitems}
1991 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.RESET}}\pysigline{\sphinxbfcode{\sphinxupquote{RESET}}\sphinxbfcode{\sphinxupquote{ = 39}}}
1994 \index{WHITE (src.colorama.ansi.AnsiFore attribute)}
1996 \begin{fulllineitems}
1997 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.WHITE}}\pysigline{\sphinxbfcode{\sphinxupquote{WHITE}}\sphinxbfcode{\sphinxupquote{ = 37}}}
2000 \index{YELLOW (src.colorama.ansi.AnsiFore attribute)}
2002 \begin{fulllineitems}
2003 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.YELLOW}}\pysigline{\sphinxbfcode{\sphinxupquote{YELLOW}}\sphinxbfcode{\sphinxupquote{ = 33}}}
2009 \index{AnsiStyle (class in src.colorama.ansi)}
2011 \begin{fulllineitems}
2012 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiStyle}}\pysigline{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.colorama.ansi.}}\sphinxbfcode{\sphinxupquote{AnsiStyle}}}
2013 Bases: {\hyperref[\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCodes}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.colorama.ansi.AnsiCodes}}}}} (\autopageref*{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCodes}})
2014 \index{BRIGHT (src.colorama.ansi.AnsiStyle attribute)}
2016 \begin{fulllineitems}
2017 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiStyle.BRIGHT}}\pysigline{\sphinxbfcode{\sphinxupquote{BRIGHT}}\sphinxbfcode{\sphinxupquote{ = 1}}}
2020 \index{DIM (src.colorama.ansi.AnsiStyle attribute)}
2022 \begin{fulllineitems}
2023 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiStyle.DIM}}\pysigline{\sphinxbfcode{\sphinxupquote{DIM}}\sphinxbfcode{\sphinxupquote{ = 2}}}
2026 \index{NORMAL (src.colorama.ansi.AnsiStyle attribute)}
2028 \begin{fulllineitems}
2029 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiStyle.NORMAL}}\pysigline{\sphinxbfcode{\sphinxupquote{NORMAL}}\sphinxbfcode{\sphinxupquote{ = 22}}}
2032 \index{RESET\_ALL (src.colorama.ansi.AnsiStyle attribute)}
2034 \begin{fulllineitems}
2035 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiStyle.RESET_ALL}}\pysigline{\sphinxbfcode{\sphinxupquote{RESET\_ALL}}\sphinxbfcode{\sphinxupquote{ = 0}}}
2041 \index{clear\_line() (in module src.colorama.ansi)}
2043 \begin{fulllineitems}
2044 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.clear_line}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.colorama.ansi.}}\sphinxbfcode{\sphinxupquote{clear\_line}}}{\emph{mode=2}}{}
2047 \index{clear\_screen() (in module src.colorama.ansi)}
2049 \begin{fulllineitems}
2050 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.clear_screen}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.colorama.ansi.}}\sphinxbfcode{\sphinxupquote{clear\_screen}}}{\emph{mode=2}}{}
2053 \index{code\_to\_chars() (in module src.colorama.ansi)}
2055 \begin{fulllineitems}
2056 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.code_to_chars}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.colorama.ansi.}}\sphinxbfcode{\sphinxupquote{code\_to\_chars}}}{\emph{code}}{}
2059 \index{set\_title() (in module src.colorama.ansi)}
2061 \begin{fulllineitems}
2062 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.set_title}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.colorama.ansi.}}\sphinxbfcode{\sphinxupquote{set\_title}}}{\emph{title}}{}
2067 \subparagraph{src.colorama.ansitowin32 module}
2068 \label{\detokenize{commands/apidoc/src.colorama:module-src.colorama.ansitowin32}}\label{\detokenize{commands/apidoc/src.colorama:src-colorama-ansitowin32-module}}\index{src.colorama.ansitowin32 (module)}\index{AnsiToWin32 (class in src.colorama.ansitowin32)}
2070 \begin{fulllineitems}
2071 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.colorama.ansitowin32.}}\sphinxbfcode{\sphinxupquote{AnsiToWin32}}}{\emph{wrapped}, \emph{convert=None}, \emph{strip=None}, \emph{autoreset=False}}{}
2072 Bases: \sphinxcode{\sphinxupquote{object}}
2074 Implements a ‘write()’ method which, on Windows, will strip ANSI character
2075 sequences from the text, and if outputting to a tty, will convert them into
2076 win32 function calls.
2077 \index{ANSI\_CSI\_RE (src.colorama.ansitowin32.AnsiToWin32 attribute)}
2079 \begin{fulllineitems}
2080 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.ANSI_CSI_RE}}\pysigline{\sphinxbfcode{\sphinxupquote{ANSI\_CSI\_RE}}\sphinxbfcode{\sphinxupquote{ = \textless{}\_sre.SRE\_Pattern object\textgreater{}}}}
2083 \index{ANSI\_OSC\_RE (src.colorama.ansitowin32.AnsiToWin32 attribute)}
2085 \begin{fulllineitems}
2086 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.ANSI_OSC_RE}}\pysigline{\sphinxbfcode{\sphinxupquote{ANSI\_OSC\_RE}}\sphinxbfcode{\sphinxupquote{ = \textless{}\_sre.SRE\_Pattern object\textgreater{}}}}
2089 \index{call\_win32() (src.colorama.ansitowin32.AnsiToWin32 method)}
2091 \begin{fulllineitems}
2092 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.call_win32}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{call\_win32}}}{\emph{command}, \emph{params}}{}
2095 \index{convert\_ansi() (src.colorama.ansitowin32.AnsiToWin32 method)}
2097 \begin{fulllineitems}
2098 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.convert_ansi}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{convert\_ansi}}}{\emph{paramstring}, \emph{command}}{}
2101 \index{convert\_osc() (src.colorama.ansitowin32.AnsiToWin32 method)}
2103 \begin{fulllineitems}
2104 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.convert_osc}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{convert\_osc}}}{\emph{text}}{}
2107 \index{extract\_params() (src.colorama.ansitowin32.AnsiToWin32 method)}
2109 \begin{fulllineitems}
2110 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.extract_params}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{extract\_params}}}{\emph{command}, \emph{paramstring}}{}
2113 \index{get\_win32\_calls() (src.colorama.ansitowin32.AnsiToWin32 method)}
2115 \begin{fulllineitems}
2116 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.get_win32_calls}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get\_win32\_calls}}}{}{}
2119 \index{reset\_all() (src.colorama.ansitowin32.AnsiToWin32 method)}
2121 \begin{fulllineitems}
2122 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.reset_all}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{reset\_all}}}{}{}
2125 \index{should\_wrap() (src.colorama.ansitowin32.AnsiToWin32 method)}
2127 \begin{fulllineitems}
2128 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.should_wrap}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{should\_wrap}}}{}{}
2129 True if this class is actually needed. If false, then the output
2130 stream will not be affected, nor will win32 calls be issued, so
2131 wrapping stdout is not actually required. This will generally be
2132 False on non-Windows platforms, unless optional functionality like
2133 autoreset has been requested using kwargs to init()
2137 \index{write() (src.colorama.ansitowin32.AnsiToWin32 method)}
2139 \begin{fulllineitems}
2140 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.write}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{write}}}{\emph{text}}{}
2143 \index{write\_and\_convert() (src.colorama.ansitowin32.AnsiToWin32 method)}
2145 \begin{fulllineitems}
2146 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.write_and_convert}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{write\_and\_convert}}}{\emph{text}}{}
2147 Write the given text to our wrapped stream, stripping any ANSI
2148 sequences from the text, and optionally converting them into win32
2153 \index{write\_plain\_text() (src.colorama.ansitowin32.AnsiToWin32 method)}
2155 \begin{fulllineitems}
2156 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.write_plain_text}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{write\_plain\_text}}}{\emph{text}, \emph{start}, \emph{end}}{}
2162 \index{StreamWrapper (class in src.colorama.ansitowin32)}
2164 \begin{fulllineitems}
2165 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.StreamWrapper}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.colorama.ansitowin32.}}\sphinxbfcode{\sphinxupquote{StreamWrapper}}}{\emph{wrapped}, \emph{converter}}{}
2166 Bases: \sphinxcode{\sphinxupquote{object}}
2168 Wraps a stream (such as stdout), acting as a transparent proxy for all
2169 attribute access apart from method ‘write()’, which is delegated to our
2171 \index{write() (src.colorama.ansitowin32.StreamWrapper method)}
2173 \begin{fulllineitems}
2174 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.StreamWrapper.write}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{write}}}{\emph{text}}{}
2180 \index{is\_a\_tty() (in module src.colorama.ansitowin32)}
2182 \begin{fulllineitems}
2183 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.is_a_tty}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.colorama.ansitowin32.}}\sphinxbfcode{\sphinxupquote{is\_a\_tty}}}{\emph{stream}}{}
2186 \index{is\_stream\_closed() (in module src.colorama.ansitowin32)}
2188 \begin{fulllineitems}
2189 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.is_stream_closed}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.colorama.ansitowin32.}}\sphinxbfcode{\sphinxupquote{is\_stream\_closed}}}{\emph{stream}}{}
2194 \subparagraph{src.colorama.initialise module}
2195 \label{\detokenize{commands/apidoc/src.colorama:src-colorama-initialise-module}}\label{\detokenize{commands/apidoc/src.colorama:module-src.colorama.initialise}}\index{src.colorama.initialise (module)}\index{colorama\_text() (in module src.colorama.initialise)}
2197 \begin{fulllineitems}
2198 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.initialise.colorama_text}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.colorama.initialise.}}\sphinxbfcode{\sphinxupquote{colorama\_text}}}{\emph{*args}, \emph{**kwds}}{}
2201 \index{deinit() (in module src.colorama.initialise)}
2203 \begin{fulllineitems}
2204 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.initialise.deinit}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.colorama.initialise.}}\sphinxbfcode{\sphinxupquote{deinit}}}{}{}
2207 \index{init() (in module src.colorama.initialise)}
2209 \begin{fulllineitems}
2210 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.initialise.init}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.colorama.initialise.}}\sphinxbfcode{\sphinxupquote{init}}}{\emph{autoreset=False}, \emph{convert=None}, \emph{strip=None}, \emph{wrap=True}}{}
2213 \index{reinit() (in module src.colorama.initialise)}
2215 \begin{fulllineitems}
2216 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.initialise.reinit}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.colorama.initialise.}}\sphinxbfcode{\sphinxupquote{reinit}}}{}{}
2219 \index{reset\_all() (in module src.colorama.initialise)}
2221 \begin{fulllineitems}
2222 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.initialise.reset_all}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.colorama.initialise.}}\sphinxbfcode{\sphinxupquote{reset\_all}}}{}{}
2225 \index{wrap\_stream() (in module src.colorama.initialise)}
2227 \begin{fulllineitems}
2228 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.initialise.wrap_stream}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.colorama.initialise.}}\sphinxbfcode{\sphinxupquote{wrap\_stream}}}{\emph{stream}, \emph{convert}, \emph{strip}, \emph{autoreset}, \emph{wrap}}{}
2233 \subparagraph{src.colorama.win32 module}
2234 \label{\detokenize{commands/apidoc/src.colorama:src-colorama-win32-module}}\label{\detokenize{commands/apidoc/src.colorama:module-src.colorama.win32}}\index{src.colorama.win32 (module)}\index{SetConsoleTextAttribute() (in module src.colorama.win32)}
2236 \begin{fulllineitems}
2237 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.win32.SetConsoleTextAttribute}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.colorama.win32.}}\sphinxbfcode{\sphinxupquote{SetConsoleTextAttribute}}}{\emph{*\_}}{}
2240 \index{winapi\_test() (in module src.colorama.win32)}
2242 \begin{fulllineitems}
2243 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.win32.winapi_test}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.colorama.win32.}}\sphinxbfcode{\sphinxupquote{winapi\_test}}}{\emph{*\_}}{}
2248 \subparagraph{src.colorama.winterm module}
2249 \label{\detokenize{commands/apidoc/src.colorama:module-src.colorama.winterm}}\label{\detokenize{commands/apidoc/src.colorama:src-colorama-winterm-module}}\index{src.colorama.winterm (module)}\index{WinColor (class in src.colorama.winterm)}
2251 \begin{fulllineitems}
2252 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinColor}}\pysigline{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.colorama.winterm.}}\sphinxbfcode{\sphinxupquote{WinColor}}}
2253 Bases: \sphinxcode{\sphinxupquote{object}}
2254 \index{BLACK (src.colorama.winterm.WinColor attribute)}
2256 \begin{fulllineitems}
2257 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinColor.BLACK}}\pysigline{\sphinxbfcode{\sphinxupquote{BLACK}}\sphinxbfcode{\sphinxupquote{ = 0}}}
2260 \index{BLUE (src.colorama.winterm.WinColor attribute)}
2262 \begin{fulllineitems}
2263 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinColor.BLUE}}\pysigline{\sphinxbfcode{\sphinxupquote{BLUE}}\sphinxbfcode{\sphinxupquote{ = 1}}}
2266 \index{CYAN (src.colorama.winterm.WinColor attribute)}
2268 \begin{fulllineitems}
2269 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinColor.CYAN}}\pysigline{\sphinxbfcode{\sphinxupquote{CYAN}}\sphinxbfcode{\sphinxupquote{ = 3}}}
2272 \index{GREEN (src.colorama.winterm.WinColor attribute)}
2274 \begin{fulllineitems}
2275 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinColor.GREEN}}\pysigline{\sphinxbfcode{\sphinxupquote{GREEN}}\sphinxbfcode{\sphinxupquote{ = 2}}}
2278 \index{GREY (src.colorama.winterm.WinColor attribute)}
2280 \begin{fulllineitems}
2281 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinColor.GREY}}\pysigline{\sphinxbfcode{\sphinxupquote{GREY}}\sphinxbfcode{\sphinxupquote{ = 7}}}
2284 \index{MAGENTA (src.colorama.winterm.WinColor attribute)}
2286 \begin{fulllineitems}
2287 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinColor.MAGENTA}}\pysigline{\sphinxbfcode{\sphinxupquote{MAGENTA}}\sphinxbfcode{\sphinxupquote{ = 5}}}
2290 \index{RED (src.colorama.winterm.WinColor attribute)}
2292 \begin{fulllineitems}
2293 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinColor.RED}}\pysigline{\sphinxbfcode{\sphinxupquote{RED}}\sphinxbfcode{\sphinxupquote{ = 4}}}
2296 \index{YELLOW (src.colorama.winterm.WinColor attribute)}
2298 \begin{fulllineitems}
2299 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinColor.YELLOW}}\pysigline{\sphinxbfcode{\sphinxupquote{YELLOW}}\sphinxbfcode{\sphinxupquote{ = 6}}}
2305 \index{WinStyle (class in src.colorama.winterm)}
2307 \begin{fulllineitems}
2308 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinStyle}}\pysigline{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.colorama.winterm.}}\sphinxbfcode{\sphinxupquote{WinStyle}}}
2309 Bases: \sphinxcode{\sphinxupquote{object}}
2310 \index{BRIGHT (src.colorama.winterm.WinStyle attribute)}
2312 \begin{fulllineitems}
2313 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinStyle.BRIGHT}}\pysigline{\sphinxbfcode{\sphinxupquote{BRIGHT}}\sphinxbfcode{\sphinxupquote{ = 8}}}
2316 \index{BRIGHT\_BACKGROUND (src.colorama.winterm.WinStyle attribute)}
2318 \begin{fulllineitems}
2319 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinStyle.BRIGHT_BACKGROUND}}\pysigline{\sphinxbfcode{\sphinxupquote{BRIGHT\_BACKGROUND}}\sphinxbfcode{\sphinxupquote{ = 128}}}
2322 \index{NORMAL (src.colorama.winterm.WinStyle attribute)}
2324 \begin{fulllineitems}
2325 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinStyle.NORMAL}}\pysigline{\sphinxbfcode{\sphinxupquote{NORMAL}}\sphinxbfcode{\sphinxupquote{ = 0}}}
2331 \index{WinTerm (class in src.colorama.winterm)}
2333 \begin{fulllineitems}
2334 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm}}\pysigline{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.colorama.winterm.}}\sphinxbfcode{\sphinxupquote{WinTerm}}}
2335 Bases: \sphinxcode{\sphinxupquote{object}}
2336 \index{back() (src.colorama.winterm.WinTerm method)}
2338 \begin{fulllineitems}
2339 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.back}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{back}}}{\emph{back=None}, \emph{light=False}, \emph{on\_stderr=False}}{}
2342 \index{cursor\_adjust() (src.colorama.winterm.WinTerm method)}
2344 \begin{fulllineitems}
2345 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.cursor_adjust}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{cursor\_adjust}}}{\emph{x}, \emph{y}, \emph{on\_stderr=False}}{}
2348 \index{erase\_line() (src.colorama.winterm.WinTerm method)}
2350 \begin{fulllineitems}
2351 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.erase_line}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{erase\_line}}}{\emph{mode=0}, \emph{on\_stderr=False}}{}
2354 \index{erase\_screen() (src.colorama.winterm.WinTerm method)}
2356 \begin{fulllineitems}
2357 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.erase_screen}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{erase\_screen}}}{\emph{mode=0}, \emph{on\_stderr=False}}{}
2360 \index{fore() (src.colorama.winterm.WinTerm method)}
2362 \begin{fulllineitems}
2363 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.fore}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{fore}}}{\emph{fore=None}, \emph{light=False}, \emph{on\_stderr=False}}{}
2366 \index{get\_attrs() (src.colorama.winterm.WinTerm method)}
2368 \begin{fulllineitems}
2369 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.get_attrs}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get\_attrs}}}{}{}
2372 \index{get\_position() (src.colorama.winterm.WinTerm method)}
2374 \begin{fulllineitems}
2375 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.get_position}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get\_position}}}{\emph{handle}}{}
2378 \index{reset\_all() (src.colorama.winterm.WinTerm method)}
2380 \begin{fulllineitems}
2381 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.reset_all}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{reset\_all}}}{\emph{on\_stderr=None}}{}
2384 \index{set\_attrs() (src.colorama.winterm.WinTerm method)}
2386 \begin{fulllineitems}
2387 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.set_attrs}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_attrs}}}{\emph{value}}{}
2390 \index{set\_console() (src.colorama.winterm.WinTerm method)}
2392 \begin{fulllineitems}
2393 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.set_console}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_console}}}{\emph{attrs=None}, \emph{on\_stderr=False}}{}
2396 \index{set\_cursor\_position() (src.colorama.winterm.WinTerm method)}
2398 \begin{fulllineitems}
2399 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.set_cursor_position}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_cursor\_position}}}{\emph{position=None}, \emph{on\_stderr=False}}{}
2402 \index{set\_title() (src.colorama.winterm.WinTerm method)}
2404 \begin{fulllineitems}
2405 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.set_title}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_title}}}{\emph{title}}{}
2408 \index{style() (src.colorama.winterm.WinTerm method)}
2410 \begin{fulllineitems}
2411 \phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.style}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{style}}}{\emph{style=None}, \emph{on\_stderr=False}}{}
2419 \subparagraph{Module contents}
2420 \label{\detokenize{commands/apidoc/src.colorama:module-src.colorama}}\label{\detokenize{commands/apidoc/src.colorama:module-contents}}\index{src.colorama (module)}
2422 \subsubsection{Submodules}
2423 \label{\detokenize{commands/apidoc/src:submodules}}
2425 \subsubsection{src.ElementTree module}
2426 \label{\detokenize{commands/apidoc/src:src-elementtree-module}}\label{\detokenize{commands/apidoc/src:module-src.ElementTree}}\index{src.ElementTree (module)}\index{Comment() (in module src.ElementTree)}
2428 \begin{fulllineitems}
2429 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.Comment}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{Comment}}}{\emph{text=None}}{}
2432 \index{dump() (in module src.ElementTree)}
2434 \begin{fulllineitems}
2435 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.dump}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{dump}}}{\emph{elem}}{}
2438 \index{Element() (in module src.ElementTree)}
2440 \begin{fulllineitems}
2441 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.Element}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{Element}}}{\emph{tag}, \emph{attrib=\{\}}, \emph{**extra}}{}
2444 \index{ElementTree (class in src.ElementTree)}
2446 \begin{fulllineitems}
2447 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.ElementTree}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{ElementTree}}}{\emph{element=None}, \emph{file=None}}{}~\index{find() (src.ElementTree.ElementTree method)}
2449 \begin{fulllineitems}
2450 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.ElementTree.find}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{find}}}{\emph{path}}{}
2453 \index{findall() (src.ElementTree.ElementTree method)}
2455 \begin{fulllineitems}
2456 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.ElementTree.findall}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{findall}}}{\emph{path}}{}
2459 \index{findtext() (src.ElementTree.ElementTree method)}
2461 \begin{fulllineitems}
2462 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.ElementTree.findtext}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{findtext}}}{\emph{path}, \emph{default=None}}{}
2465 \index{getiterator() (src.ElementTree.ElementTree method)}
2467 \begin{fulllineitems}
2468 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.ElementTree.getiterator}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{getiterator}}}{\emph{tag=None}}{}
2471 \index{getroot() (src.ElementTree.ElementTree method)}
2473 \begin{fulllineitems}
2474 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.ElementTree.getroot}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{getroot}}}{}{}
2477 \index{parse() (src.ElementTree.ElementTree method)}
2479 \begin{fulllineitems}
2480 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.ElementTree.parse}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parse}}}{\emph{source}, \emph{parser=None}}{}
2483 \index{write() (src.ElementTree.ElementTree method)}
2485 \begin{fulllineitems}
2486 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.ElementTree.write}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{write}}}{\emph{file}, \emph{encoding='us-ascii'}}{}
2492 \index{fromstring() (in module src.ElementTree)}
2494 \begin{fulllineitems}
2495 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.fromstring}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{fromstring}}}{\emph{text}}{}
2498 \index{iselement() (in module src.ElementTree)}
2500 \begin{fulllineitems}
2501 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.iselement}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{iselement}}}{\emph{element}}{}
2504 \index{iterparse (class in src.ElementTree)}
2506 \begin{fulllineitems}
2507 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.iterparse}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{iterparse}}}{\emph{source}, \emph{events=None}}{}~\index{next() (src.ElementTree.iterparse method)}
2509 \begin{fulllineitems}
2510 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.iterparse.next}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{next}}}{}{}
2516 \index{parse() (in module src.ElementTree)}
2518 \begin{fulllineitems}
2519 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.parse}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{parse}}}{\emph{source}, \emph{parser=None}}{}
2522 \index{PI() (in module src.ElementTree)}
2524 \begin{fulllineitems}
2525 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.PI}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{PI}}}{\emph{target}, \emph{text=None}}{}
2528 \index{ProcessingInstruction() (in module src.ElementTree)}
2530 \begin{fulllineitems}
2531 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.ProcessingInstruction}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{ProcessingInstruction}}}{\emph{target}, \emph{text=None}}{}
2534 \index{QName (class in src.ElementTree)}
2536 \begin{fulllineitems}
2537 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.QName}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{QName}}}{\emph{text\_or\_uri}, \emph{tag=None}}{}
2540 \index{SubElement() (in module src.ElementTree)}
2542 \begin{fulllineitems}
2543 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.SubElement}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{SubElement}}}{\emph{parent}, \emph{tag}, \emph{attrib=\{\}}, \emph{**extra}}{}
2546 \index{tostring() (in module src.ElementTree)}
2548 \begin{fulllineitems}
2549 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.tostring}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{tostring}}}{\emph{element}, \emph{encoding=None}}{}
2552 \index{TreeBuilder (class in src.ElementTree)}
2554 \begin{fulllineitems}
2555 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.TreeBuilder}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{TreeBuilder}}}{\emph{element\_factory=None}}{}~\index{close() (src.ElementTree.TreeBuilder method)}
2557 \begin{fulllineitems}
2558 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.TreeBuilder.close}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{close}}}{}{}
2561 \index{data() (src.ElementTree.TreeBuilder method)}
2563 \begin{fulllineitems}
2564 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.TreeBuilder.data}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{data}}}{\emph{data}}{}
2567 \index{end() (src.ElementTree.TreeBuilder method)}
2569 \begin{fulllineitems}
2570 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.TreeBuilder.end}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{end}}}{\emph{tag}}{}
2573 \index{start() (src.ElementTree.TreeBuilder method)}
2575 \begin{fulllineitems}
2576 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.TreeBuilder.start}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{start}}}{\emph{tag}, \emph{attrs}}{}
2582 \index{XML() (in module src.ElementTree)}
2584 \begin{fulllineitems}
2585 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.XML}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{XML}}}{\emph{text}}{}
2588 \index{XMLTreeBuilder (class in src.ElementTree)}
2590 \begin{fulllineitems}
2591 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.XMLTreeBuilder}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{XMLTreeBuilder}}}{\emph{html=0}, \emph{target=None}}{}~\index{close() (src.ElementTree.XMLTreeBuilder method)}
2593 \begin{fulllineitems}
2594 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.XMLTreeBuilder.close}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{close}}}{}{}
2597 \index{doctype() (src.ElementTree.XMLTreeBuilder method)}
2599 \begin{fulllineitems}
2600 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.XMLTreeBuilder.doctype}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{doctype}}}{\emph{name}, \emph{pubid}, \emph{system}}{}
2603 \index{feed() (src.ElementTree.XMLTreeBuilder method)}
2605 \begin{fulllineitems}
2606 \phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.XMLTreeBuilder.feed}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{feed}}}{\emph{data}}{}
2614 \subsubsection{src.architecture module}
2615 \label{\detokenize{commands/apidoc/src:module-src.architecture}}\label{\detokenize{commands/apidoc/src:src-architecture-module}}\index{src.architecture (module)}
2616 In this file : all the stuff that can change with the architecture
2617 on which SAT is running
2618 \index{get\_distrib\_version() (in module src.architecture)}
2620 \begin{fulllineitems}
2621 \phantomsection\label{\detokenize{commands/apidoc/src:src.architecture.get_distrib_version}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.architecture.}}\sphinxbfcode{\sphinxupquote{get\_distrib\_version}}}{\emph{distrib}, \emph{codes}}{}
2622 Gets the version of the distribution
2623 \begin{quote}\begin{description}
2624 \item[{Parameters}] \leavevmode\begin{itemize}
2626 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{distrib}}) \textendash{} The distribution on which the version will be found.
2629 \sphinxstyleliteralstrong{\sphinxupquote{L\{Mapping\}}} (\sphinxstyleliteralemphasis{\sphinxupquote{codes}}) \textendash{} The map containing distribution correlation table.
2633 \item[{Returns}] \leavevmode
2634 The version of the distribution on which salomeTools is running,
2635 regarding the distribution correlation table contained in codes
2638 \item[{Return type}] \leavevmode
2641 \end{description}\end{quote}
2645 \index{get\_distribution() (in module src.architecture)}
2647 \begin{fulllineitems}
2648 \phantomsection\label{\detokenize{commands/apidoc/src:src.architecture.get_distribution}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.architecture.}}\sphinxbfcode{\sphinxupquote{get\_distribution}}}{\emph{codes}}{}
2649 Gets the code for the distribution
2650 \begin{quote}\begin{description}
2651 \item[{Parameters}] \leavevmode
2652 \sphinxstyleliteralstrong{\sphinxupquote{L\{Mapping\}}} (\sphinxstyleliteralemphasis{\sphinxupquote{codes}}) \textendash{} The map containing distribution correlation table.
2654 \item[{Returns}] \leavevmode
2655 The distribution on which salomeTools is running, regarding the
2656 distribution correlation table contained in codes variable.
2658 \item[{Return type}] \leavevmode
2661 \end{description}\end{quote}
2665 \index{get\_nb\_proc() (in module src.architecture)}
2667 \begin{fulllineitems}
2668 \phantomsection\label{\detokenize{commands/apidoc/src:src.architecture.get_nb_proc}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.architecture.}}\sphinxbfcode{\sphinxupquote{get\_nb\_proc}}}{}{}~\begin{description}
2669 \item[{Gets the number of processors of the machine }] \leavevmode
2670 on which salomeTools is running.
2673 \begin{quote}\begin{description}
2674 \item[{Returns}] \leavevmode
2675 the number of processors.
2677 \item[{Return type}] \leavevmode
2680 \end{description}\end{quote}
2684 \index{get\_python\_version() (in module src.architecture)}
2686 \begin{fulllineitems}
2687 \phantomsection\label{\detokenize{commands/apidoc/src:src.architecture.get_python_version}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.architecture.}}\sphinxbfcode{\sphinxupquote{get\_python\_version}}}{}{}
2688 Gets the version of the running python.
2689 \begin{quote}\begin{description}
2690 \item[{Returns}] \leavevmode
2691 the version of the running python.
2693 \item[{Return type}] \leavevmode
2696 \end{description}\end{quote}
2700 \index{get\_user() (in module src.architecture)}
2702 \begin{fulllineitems}
2703 \phantomsection\label{\detokenize{commands/apidoc/src:src.architecture.get_user}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.architecture.}}\sphinxbfcode{\sphinxupquote{get\_user}}}{}{}
2704 method that gets the username that launched sat
2705 \begin{quote}\begin{description}
2706 \item[{Return type}] \leavevmode
2709 \end{description}\end{quote}
2713 \index{is\_windows() (in module src.architecture)}
2715 \begin{fulllineitems}
2716 \phantomsection\label{\detokenize{commands/apidoc/src:src.architecture.is_windows}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.architecture.}}\sphinxbfcode{\sphinxupquote{is\_windows}}}{}{}
2717 method that checks windows OS
2718 \begin{quote}\begin{description}
2719 \item[{Return type}] \leavevmode
2722 \end{description}\end{quote}
2728 \subsubsection{src.compilation module}
2729 \label{\detokenize{commands/apidoc/src:module-src.compilation}}\label{\detokenize{commands/apidoc/src:src-compilation-module}}\index{src.compilation (module)}\index{Builder (class in src.compilation)}
2731 \begin{fulllineitems}
2732 \phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.compilation.}}\sphinxbfcode{\sphinxupquote{Builder}}}{\emph{config}, \emph{logger}, \emph{product\_info}, \emph{options=OptResult( )}, \emph{check\_src=True}}{}
2733 Class to handle all construction steps, like cmake, configure, make, …
2734 \index{build\_configure() (src.compilation.Builder method)}
2736 \begin{fulllineitems}
2737 \phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.build_configure}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{build\_configure}}}{\emph{options=''}}{}
2740 \index{check() (src.compilation.Builder method)}
2742 \begin{fulllineitems}
2743 \phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.check}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{check}}}{\emph{command=''}}{}
2746 \index{cmake() (src.compilation.Builder method)}
2748 \begin{fulllineitems}
2749 \phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.cmake}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{cmake}}}{\emph{options=''}}{}
2752 \index{complete\_environment() (src.compilation.Builder method)}
2754 \begin{fulllineitems}
2755 \phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.complete_environment}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{complete\_environment}}}{\emph{make\_options}}{}
2758 \index{configure() (src.compilation.Builder method)}
2760 \begin{fulllineitems}
2761 \phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.configure}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{configure}}}{\emph{options=''}}{}
2764 \index{do\_batch\_script\_build() (src.compilation.Builder method)}
2766 \begin{fulllineitems}
2767 \phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.do_batch_script_build}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{do\_batch\_script\_build}}}{\emph{script}, \emph{nb\_proc}}{}
2770 \index{do\_default\_build() (src.compilation.Builder method)}
2772 \begin{fulllineitems}
2773 \phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.do_default_build}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{do\_default\_build}}}{\emph{build\_conf\_options=''}, \emph{configure\_options=''}, \emph{show\_warning=True}}{}
2776 \index{do\_python\_script\_build() (src.compilation.Builder method)}
2778 \begin{fulllineitems}
2779 \phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.do_python_script_build}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{do\_python\_script\_build}}}{\emph{script}, \emph{nb\_proc}}{}
2782 \index{do\_script\_build() (src.compilation.Builder method)}
2784 \begin{fulllineitems}
2785 \phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.do_script_build}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{do\_script\_build}}}{\emph{script}, \emph{number\_of\_proc=0}}{}
2788 \index{hack\_libtool() (src.compilation.Builder method)}
2790 \begin{fulllineitems}
2791 \phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.hack_libtool}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{hack\_libtool}}}{}{}
2794 \index{install() (src.compilation.Builder method)}
2796 \begin{fulllineitems}
2797 \phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.install}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{install}}}{}{}
2800 \index{log() (src.compilation.Builder method)}
2802 \begin{fulllineitems}
2803 \phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.log}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{log}}}{\emph{text}, \emph{level}, \emph{showInfo=True}}{}
2806 \index{log\_command() (src.compilation.Builder method)}
2808 \begin{fulllineitems}
2809 \phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.log_command}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{log\_command}}}{\emph{command}}{}
2812 \index{make() (src.compilation.Builder method)}
2814 \begin{fulllineitems}
2815 \phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.make}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{make}}}{\emph{nb\_proc}, \emph{make\_opt=''}}{}
2818 \index{prepare() (src.compilation.Builder method)}
2820 \begin{fulllineitems}
2821 \phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.prepare}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepare}}}{}{}
2824 \index{put\_txt\_log\_in\_appli\_log\_dir() (src.compilation.Builder method)}
2826 \begin{fulllineitems}
2827 \phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.put_txt_log_in_appli_log_dir}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{put\_txt\_log\_in\_appli\_log\_dir}}}{\emph{file\_name}}{}~\begin{description}
2828 \item[{Put the txt log (that contain the system logs, like make command}] \leavevmode
2829 output) in the directory \textless{}APPLICATION DIR\textgreater{}/LOGS/\textless{}product\_name\textgreater{}/
2832 \begin{quote}\begin{description}
2833 \item[{Parameters}] \leavevmode
2834 \sphinxstyleliteralstrong{\sphinxupquote{Str}} (\sphinxstyleliteralemphasis{\sphinxupquote{file\_name}}) \textendash{} the name of the file to write
2836 \end{description}\end{quote}
2840 \index{wmake() (src.compilation.Builder method)}
2842 \begin{fulllineitems}
2843 \phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.wmake}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{wmake}}}{\emph{nb\_proc}, \emph{opt\_nb\_proc=None}}{}
2851 \subsubsection{src.debug module}
2852 \label{\detokenize{commands/apidoc/src:module-src.debug}}\label{\detokenize{commands/apidoc/src:src-debug-module}}\index{src.debug (module)}
2853 This file assume DEBUG functionalities use
2856 print debug messages in sys.stderr for salomeTools
2859 show pretty print debug representation from instances of SAT classes
2860 (pretty print src.pyconf.Config), and python dict/list etc. (as ‘aVariable’)
2864 WARNING: obviously supposedly show messages in SAT development phase, not production
2867 \textgreater{}\textgreater{} import debug as DBG
2868 \textgreater{}\textgreater{} DBG.write(“aTitle”, aVariable) \# not shown in production
2869 \textgreater{}\textgreater{} DBG.write(“aTitle”, aVariable, True) \# unconditionaly shown (as show=True)
2871 to set show message as development phase:
2872 \textgreater{}\textgreater{} DBG.push\_debug(True)
2874 to set no show message as production phase:
2875 \textgreater{}\textgreater{} DBG.push\_debug(False)
2877 to set show message temporary as development phase, only in a method:
2878 \textgreater{}\textgreater{} def aMethodToDebug(…):
2879 \textgreater{}\textgreater{} DBG.push\_debug(True) \#force show as appended status
2880 \textgreater{}\textgreater{} etc. method code with some DBG.write()
2881 \textgreater{}\textgreater{} DBG.pop\_debug() \#restore previous status (show or not show)
2882 \textgreater{}\textgreater{} return
2884 to set a message for future fix, as temporary problem to not forget:
2885 DBG.tofix(“aTitle”, aVariable, True/False) \#True/False in production shown, or not
2887 in command line interface you could redirect stderr to file ‘myDebug.log’:
2888 \textgreater{}\textgreater{} sat compile … 2\textgreater{} myDebug.log \# only stderr
2889 \textgreater{}\textgreater{} sat compile … \&\textgreater{} myDebug.log \# stdout and stderr
2890 \index{InStream (class in src.debug)}
2892 \begin{fulllineitems}
2893 \phantomsection\label{\detokenize{commands/apidoc/src:src.debug.InStream}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{InStream}}}{\emph{buf=''}}{}
2894 Bases: \sphinxcode{\sphinxupquote{StringIO.StringIO}}
2896 utility class for pyconf.Config input iostream
2900 \index{OutStream (class in src.debug)}
2902 \begin{fulllineitems}
2903 \phantomsection\label{\detokenize{commands/apidoc/src:src.debug.OutStream}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{OutStream}}}{\emph{buf=''}}{}
2904 Bases: \sphinxcode{\sphinxupquote{StringIO.StringIO}}
2906 utility class for pyconf.Config output iostream
2907 \index{close() (src.debug.OutStream method)}
2909 \begin{fulllineitems}
2910 \phantomsection\label{\detokenize{commands/apidoc/src:src.debug.OutStream.close}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{close}}}{}{}
2911 because Config.\_\_save\_\_ calls close() stream as file
2912 keep value before lost as self.value
2919 \index{getLocalEnv() (in module src.debug)}
2921 \begin{fulllineitems}
2922 \phantomsection\label{\detokenize{commands/apidoc/src:src.debug.getLocalEnv}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{getLocalEnv}}}{}{}
2923 get string for environment variables representation
2927 \index{getStrConfigDbg() (in module src.debug)}
2929 \begin{fulllineitems}
2930 \phantomsection\label{\detokenize{commands/apidoc/src:src.debug.getStrConfigDbg}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{getStrConfigDbg}}}{\emph{config}}{}
2931 set string as saveConfigDbg,
2932 as (path expression evaluation) for debug
2936 \index{getStrConfigStd() (in module src.debug)}
2938 \begin{fulllineitems}
2939 \phantomsection\label{\detokenize{commands/apidoc/src:src.debug.getStrConfigStd}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{getStrConfigStd}}}{\emph{config}}{}
2940 set string as saveConfigStd, as file .pyconf
2944 \index{indent() (in module src.debug)}
2946 \begin{fulllineitems}
2947 \phantomsection\label{\detokenize{commands/apidoc/src:src.debug.indent}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{indent}}}{\emph{text}, \emph{amount=2}, \emph{ch=' '}}{}
2948 indent multi lines message
2952 \index{pop\_debug() (in module src.debug)}
2954 \begin{fulllineitems}
2955 \phantomsection\label{\detokenize{commands/apidoc/src:src.debug.pop_debug}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{pop\_debug}}}{}{}
2956 restore previous debug outputs status
2960 \index{push\_debug() (in module src.debug)}
2962 \begin{fulllineitems}
2963 \phantomsection\label{\detokenize{commands/apidoc/src:src.debug.push_debug}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{push\_debug}}}{\emph{aBool}}{}
2964 set debug outputs activated, or not
2968 \index{saveConfigDbg() (in module src.debug)}
2970 \begin{fulllineitems}
2971 \phantomsection\label{\detokenize{commands/apidoc/src:src.debug.saveConfigDbg}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{saveConfigDbg}}}{\emph{config}, \emph{aStream}, \emph{indent=0}, \emph{path=''}}{}
2972 pyconf returns multilines (path expression evaluation) for debug
2976 \index{saveConfigStd() (in module src.debug)}
2978 \begin{fulllineitems}
2979 \phantomsection\label{\detokenize{commands/apidoc/src:src.debug.saveConfigStd}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{saveConfigStd}}}{\emph{config}, \emph{aStream}}{}
2980 returns as file .pyconf
2984 \index{tofix() (in module src.debug)}
2986 \begin{fulllineitems}
2987 \phantomsection\label{\detokenize{commands/apidoc/src:src.debug.tofix}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{tofix}}}{\emph{title}, \emph{var=''}, \emph{force=None}}{}
2988 write sys.stderr a message if \_debug{[}-1{]}==True or optionaly force=True
2989 use this only if no logger accessible for classic
2990 logger.warning(message) or logger.debug(message)
2994 \index{write() (in module src.debug)}
2996 \begin{fulllineitems}
2997 \phantomsection\label{\detokenize{commands/apidoc/src:src.debug.write}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{write}}}{\emph{title}, \emph{var=''}, \emph{force=None}, \emph{fmt='\textbackslash{}n\#\#\#\# DEBUG: \%s:\textbackslash{}n\%s\textbackslash{}n'}}{}
2998 write sys.stderr a message if \_debug{[}-1{]}==True or optionaly force=True
3004 \subsubsection{src.environment module}
3005 \label{\detokenize{commands/apidoc/src:src-environment-module}}\label{\detokenize{commands/apidoc/src:module-src.environment}}\index{src.environment (module)}\index{Environ (class in src.environment)}
3007 \begin{fulllineitems}
3008 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Environ}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.environment.}}\sphinxbfcode{\sphinxupquote{Environ}}}{\emph{environ=None}}{}
3009 Class to manage the environment context
3010 \index{append() (src.environment.Environ method)}
3012 \begin{fulllineitems}
3013 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Environ.append}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
3014 Same as append\_value but the value argument can be a list
3015 \begin{quote}\begin{description}
3016 \item[{Parameters}] \leavevmode\begin{itemize}
3018 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to append
3021 \sphinxstyleliteralstrong{\sphinxupquote{str}}\sphinxstyleliteralstrong{\sphinxupquote{ or }}\sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the value(s) to append to key
3024 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
3028 \end{description}\end{quote}
3032 \index{append\_value() (src.environment.Environ method)}
3034 \begin{fulllineitems}
3035 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Environ.append_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append\_value}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
3036 append value to key using sep
3037 \begin{quote}\begin{description}
3038 \item[{Parameters}] \leavevmode\begin{itemize}
3040 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to append
3043 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to append to key
3046 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
3050 \end{description}\end{quote}
3054 \index{command\_value() (src.environment.Environ method)}
3056 \begin{fulllineitems}
3057 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Environ.command_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{command\_value}}}{\emph{key}, \emph{command}}{}
3058 Get the value given by the system command “command”
3059 and put it in the environment variable key
3060 \begin{quote}\begin{description}
3061 \item[{Parameters}] \leavevmode\begin{itemize}
3063 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{command}}) \textendash{} the environment variable
3066 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the command to execute
3070 \end{description}\end{quote}
3074 \index{get() (src.environment.Environ method)}
3076 \begin{fulllineitems}
3077 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Environ.get}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get}}}{\emph{key}}{}
3078 Get the value of the environment variable “key”
3079 \begin{quote}\begin{description}
3080 \item[{Parameters}] \leavevmode
3081 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable
3083 \end{description}\end{quote}
3087 \index{is\_defined() (src.environment.Environ method)}
3089 \begin{fulllineitems}
3090 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Environ.is_defined}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{is\_defined}}}{\emph{key}}{}
3091 Check if the key exists in the environment
3092 \begin{quote}\begin{description}
3093 \item[{Parameters}] \leavevmode
3094 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable to check
3096 \end{description}\end{quote}
3100 \index{prepend() (src.environment.Environ method)}
3102 \begin{fulllineitems}
3103 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Environ.prepend}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepend}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
3104 Same as prepend\_value but the value argument can be a list
3105 \begin{quote}\begin{description}
3106 \item[{Parameters}] \leavevmode\begin{itemize}
3108 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to prepend
3111 \sphinxstyleliteralstrong{\sphinxupquote{str}}\sphinxstyleliteralstrong{\sphinxupquote{ or }}\sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the value(s) to prepend to key
3114 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
3118 \end{description}\end{quote}
3122 \index{prepend\_value() (src.environment.Environ method)}
3124 \begin{fulllineitems}
3125 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Environ.prepend_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepend\_value}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
3126 prepend value to key using sep
3127 \begin{quote}\begin{description}
3128 \item[{Parameters}] \leavevmode\begin{itemize}
3130 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to prepend
3133 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to prepend to key
3136 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
3140 \end{description}\end{quote}
3144 \index{set() (src.environment.Environ method)}
3146 \begin{fulllineitems}
3147 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Environ.set}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set}}}{\emph{key}, \emph{value}}{}
3148 Set the environment variable “key” to value “value”
3149 \begin{quote}\begin{description}
3150 \item[{Parameters}] \leavevmode\begin{itemize}
3152 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the environment variable to set
3155 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value
3159 \end{description}\end{quote}
3166 \index{FileEnvWriter (class in src.environment)}
3168 \begin{fulllineitems}
3169 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.FileEnvWriter}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.environment.}}\sphinxbfcode{\sphinxupquote{FileEnvWriter}}}{\emph{config}, \emph{logger}, \emph{out\_dir}, \emph{src\_root}, \emph{env\_info=None}}{}
3170 Class to dump the environment to a file.
3171 \index{write\_cfgForPy\_file() (src.environment.FileEnvWriter method)}
3173 \begin{fulllineitems}
3174 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.FileEnvWriter.write_cfgForPy_file}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{write\_cfgForPy\_file}}}{\emph{filename}, \emph{additional\_env=\{\}}, \emph{for\_package=None}, \emph{with\_commercial=True}}{}
3175 Append to current opened aFile a cfgForPy
3176 environment (SALOME python launcher).
3177 \begin{quote}\begin{description}
3178 \item[{Parameters}] \leavevmode\begin{itemize}
3180 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{for\_package}}) \textendash{} the file path
3183 \sphinxstyleliteralstrong{\sphinxupquote{dict}} (\sphinxstyleliteralemphasis{\sphinxupquote{additional\_env}}) \textendash{} a dictionary of additional variables
3184 to add to the environment
3187 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} If not None, produce a relative environment
3188 designed for a package.
3192 \end{description}\end{quote}
3196 \index{write\_env\_file() (src.environment.FileEnvWriter method)}
3198 \begin{fulllineitems}
3199 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.FileEnvWriter.write_env_file}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{write\_env\_file}}}{\emph{filename}, \emph{forBuild}, \emph{shell}, \emph{for\_package=None}}{}
3200 Create an environment file.
3201 \begin{quote}\begin{description}
3202 \item[{Parameters}] \leavevmode\begin{itemize}
3204 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{shell}}) \textendash{} the file path
3207 \sphinxstyleliteralstrong{\sphinxupquote{bool}} (\sphinxstyleliteralemphasis{\sphinxupquote{forBuild}}) \textendash{} if true, the build environment
3210 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the type of file wanted (.sh, .bat)
3214 \item[{Returns}] \leavevmode
3215 The path to the generated file
3217 \item[{Return type}] \leavevmode
3220 \end{description}\end{quote}
3227 \index{SalomeEnviron (class in src.environment)}
3229 \begin{fulllineitems}
3230 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.environment.}}\sphinxbfcode{\sphinxupquote{SalomeEnviron}}}{\emph{cfg}, \emph{environ}, \emph{forBuild=False}, \emph{for\_package=None}, \emph{enable\_simple\_env\_script=True}}{}
3231 Class to manage the environment of SALOME.
3232 \index{add\_comment() (src.environment.SalomeEnviron method)}
3234 \begin{fulllineitems}
3235 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.add_comment}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_comment}}}{\emph{comment}}{}
3236 Add a commentary to the out stream (in case of file generation)
3237 \begin{quote}\begin{description}
3238 \item[{Parameters}] \leavevmode
3239 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{comment}}) \textendash{} the commentary to add
3241 \end{description}\end{quote}
3245 \index{add\_line() (src.environment.SalomeEnviron method)}
3247 \begin{fulllineitems}
3248 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.add_line}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_line}}}{\emph{nb\_line}}{}
3249 Add empty lines to the out stream (in case of file generation)
3250 \begin{quote}\begin{description}
3251 \item[{Parameters}] \leavevmode
3252 \sphinxstyleliteralstrong{\sphinxupquote{int}} (\sphinxstyleliteralemphasis{\sphinxupquote{nb\_line}}) \textendash{} the number of empty lines to add
3254 \end{description}\end{quote}
3258 \index{add\_warning() (src.environment.SalomeEnviron method)}
3260 \begin{fulllineitems}
3261 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.add_warning}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_warning}}}{\emph{warning}}{}
3262 Add a warning to the out stream (in case of file generation)
3263 \begin{quote}\begin{description}
3264 \item[{Parameters}] \leavevmode
3265 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{warning}}) \textendash{} the warning to add
3267 \end{description}\end{quote}
3271 \index{append() (src.environment.SalomeEnviron method)}
3273 \begin{fulllineitems}
3274 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.append}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
3275 append value to key using sep
3276 \begin{quote}\begin{description}
3277 \item[{Parameters}] \leavevmode\begin{itemize}
3279 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to append
3282 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to append to key
3285 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
3289 \end{description}\end{quote}
3293 \index{dump() (src.environment.SalomeEnviron method)}
3295 \begin{fulllineitems}
3296 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.dump}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{dump}}}{\emph{out}}{}
3297 Write the environment to out
3298 \begin{quote}\begin{description}
3299 \item[{Parameters}] \leavevmode
3300 \sphinxstyleliteralstrong{\sphinxupquote{file}} (\sphinxstyleliteralemphasis{\sphinxupquote{out}}) \textendash{} the stream where to write the environment
3302 \end{description}\end{quote}
3306 \index{finish() (src.environment.SalomeEnviron method)}
3308 \begin{fulllineitems}
3309 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.finish}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{finish}}}{\emph{required}}{}
3310 Add a final instruction in the out file (in case of file generation)
3311 \begin{quote}\begin{description}
3312 \item[{Parameters}] \leavevmode
3313 \sphinxstyleliteralstrong{\sphinxupquote{bool}} (\sphinxstyleliteralemphasis{\sphinxupquote{required}}) \textendash{} Do nothing if required is False
3315 \end{description}\end{quote}
3319 \index{get() (src.environment.SalomeEnviron method)}
3321 \begin{fulllineitems}
3322 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.get}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get}}}{\emph{key}}{}
3323 Get the value of the environment variable “key”
3324 \begin{quote}\begin{description}
3325 \item[{Parameters}] \leavevmode
3326 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable
3328 \end{description}\end{quote}
3332 \index{get\_names() (src.environment.SalomeEnviron method)}
3334 \begin{fulllineitems}
3335 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.get_names}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get\_names}}}{\emph{lProducts}}{}
3336 Get the products name to add in SALOME\_MODULES environment variable
3337 It is the name of the product, except in the case where the is a
3338 component name. And it has to be in SALOME\_MODULES variable only
3339 if the product has the property has\_salome\_hui = “yes”
3340 \begin{quote}\begin{description}
3341 \item[{Parameters}] \leavevmode
3342 \sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{lProducts}}) \textendash{} List of products to potentially add
3344 \end{description}\end{quote}
3348 \index{is\_defined() (src.environment.SalomeEnviron method)}
3350 \begin{fulllineitems}
3351 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.is_defined}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{is\_defined}}}{\emph{key}}{}
3352 Check if the key exists in the environment
3353 \begin{quote}\begin{description}
3354 \item[{Parameters}] \leavevmode
3355 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable to check
3357 \end{description}\end{quote}
3361 \index{load\_cfg\_environment() (src.environment.SalomeEnviron method)}
3363 \begin{fulllineitems}
3364 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.load_cfg_environment}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{load\_cfg\_environment}}}{\emph{cfg\_env}}{}
3365 Loads environment defined in cfg\_env
3366 \begin{quote}\begin{description}
3367 \item[{Parameters}] \leavevmode
3368 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{cfg\_env}}) \textendash{} A config containing an environment
3370 \end{description}\end{quote}
3374 \index{prepend() (src.environment.SalomeEnviron method)}
3376 \begin{fulllineitems}
3377 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.prepend}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepend}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
3378 prepend value to key using sep
3379 \begin{quote}\begin{description}
3380 \item[{Parameters}] \leavevmode\begin{itemize}
3382 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to prepend
3385 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to prepend to key
3388 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
3392 \end{description}\end{quote}
3396 \index{run\_env\_script() (src.environment.SalomeEnviron method)}
3398 \begin{fulllineitems}
3399 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.run_env_script}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{run\_env\_script}}}{\emph{product\_info}, \emph{logger=None}, \emph{native=False}}{}
3400 Runs an environment script.
3401 \begin{quote}\begin{description}
3402 \item[{Parameters}] \leavevmode\begin{itemize}
3404 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The product description
3407 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to display messages
3410 \sphinxstyleliteralstrong{\sphinxupquote{Boolean}} (\sphinxstyleliteralemphasis{\sphinxupquote{native}}) \textendash{} if True load set\_native\_env instead of set\_env
3414 \end{description}\end{quote}
3418 \index{run\_simple\_env\_script() (src.environment.SalomeEnviron method)}
3420 \begin{fulllineitems}
3421 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.run_simple_env_script}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{run\_simple\_env\_script}}}{\emph{script\_path}, \emph{logger=None}}{}
3422 Runs an environment script. Same as run\_env\_script, but with a
3423 script path as parameter.
3424 \begin{quote}\begin{description}
3425 \item[{Parameters}] \leavevmode\begin{itemize}
3427 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{script\_path}}) \textendash{} a path to an environment script
3430 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to display messages
3434 \end{description}\end{quote}
3438 \index{set() (src.environment.SalomeEnviron method)}
3440 \begin{fulllineitems}
3441 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.set}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set}}}{\emph{key}, \emph{value}}{}
3442 Set the environment variable “key” to value “value”
3443 \begin{quote}\begin{description}
3444 \item[{Parameters}] \leavevmode\begin{itemize}
3446 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the environment variable to set
3449 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value
3453 \end{description}\end{quote}
3457 \index{set\_a\_product() (src.environment.SalomeEnviron method)}
3459 \begin{fulllineitems}
3460 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.set_a_product}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_a\_product}}}{\emph{product}, \emph{logger}}{}
3461 Sets the environment of a product.
3462 \begin{quote}\begin{description}
3463 \item[{Parameters}] \leavevmode\begin{itemize}
3465 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{product}}) \textendash{} The product name
3468 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to display messages
3472 \end{description}\end{quote}
3476 \index{set\_application\_env() (src.environment.SalomeEnviron method)}
3478 \begin{fulllineitems}
3479 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.set_application_env}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_application\_env}}}{\emph{logger}}{}
3480 Sets the environment defined in the APPLICATION file.
3481 \begin{quote}\begin{description}
3482 \item[{Parameters}] \leavevmode
3483 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to display messages
3485 \end{description}\end{quote}
3489 \index{set\_cpp\_env() (src.environment.SalomeEnviron method)}
3491 \begin{fulllineitems}
3492 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.set_cpp_env}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_cpp\_env}}}{\emph{product\_info}}{}
3493 Sets the generic environment for a SALOME cpp product.
3494 \begin{quote}\begin{description}
3495 \item[{Parameters}] \leavevmode
3496 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The product description
3498 \end{description}\end{quote}
3502 \index{set\_full\_environ() (src.environment.SalomeEnviron method)}
3504 \begin{fulllineitems}
3505 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.set_full_environ}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_full\_environ}}}{\emph{logger}, \emph{env\_info}}{}
3506 Sets the full environment for products
3507 specified in env\_info dictionary.
3508 \begin{quote}\begin{description}
3509 \item[{Parameters}] \leavevmode\begin{itemize}
3511 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to display messages
3514 \sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{env\_info}}) \textendash{} the list of products
3518 \end{description}\end{quote}
3522 \index{set\_products() (src.environment.SalomeEnviron method)}
3524 \begin{fulllineitems}
3525 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.set_products}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_products}}}{\emph{logger}, \emph{src\_root=None}}{}
3526 Sets the environment for all the products.
3527 \begin{quote}\begin{description}
3528 \item[{Parameters}] \leavevmode\begin{itemize}
3530 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to display messages
3533 \sphinxstyleliteralstrong{\sphinxupquote{src}} (\sphinxstyleliteralemphasis{\sphinxupquote{src\_root}}) \textendash{} the application working directory
3537 \end{description}\end{quote}
3541 \index{set\_python\_libdirs() (src.environment.SalomeEnviron method)}
3543 \begin{fulllineitems}
3544 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.set_python_libdirs}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_python\_libdirs}}}{}{}
3545 Set some generic variables for python library paths
3549 \index{set\_salome\_generic\_product\_env() (src.environment.SalomeEnviron method)}
3551 \begin{fulllineitems}
3552 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.set_salome_generic_product_env}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_salome\_generic\_product\_env}}}{\emph{pi}}{}
3553 Sets the generic environment for a SALOME product.
3554 \begin{quote}\begin{description}
3555 \item[{Parameters}] \leavevmode
3556 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{pi}}) \textendash{} The product description
3558 \end{description}\end{quote}
3562 \index{set\_salome\_minimal\_product\_env() (src.environment.SalomeEnviron method)}
3564 \begin{fulllineitems}
3565 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.set_salome_minimal_product_env}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_salome\_minimal\_product\_env}}}{\emph{product\_info}, \emph{logger}}{}
3566 Sets the minimal environment for a SALOME product.
3567 xxx\_ROOT\_DIR and xxx\_SRC\_DIR
3568 \begin{quote}\begin{description}
3569 \item[{Parameters}] \leavevmode\begin{itemize}
3571 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The product description
3574 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to display messages
3578 \end{description}\end{quote}
3585 \index{Shell (class in src.environment)}
3587 \begin{fulllineitems}
3588 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Shell}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.environment.}}\sphinxbfcode{\sphinxupquote{Shell}}}{\emph{name}, \emph{extension}}{}
3589 Definition of a Shell.
3593 \index{load\_environment() (in module src.environment)}
3595 \begin{fulllineitems}
3596 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.load_environment}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.environment.}}\sphinxbfcode{\sphinxupquote{load\_environment}}}{\emph{config}, \emph{build}, \emph{logger}}{}
3597 Loads the environment (used to run the tests, for example).
3598 \begin{quote}\begin{description}
3599 \item[{Parameters}] \leavevmode\begin{itemize}
3601 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} the global config
3604 \sphinxstyleliteralstrong{\sphinxupquote{bool}} (\sphinxstyleliteralemphasis{\sphinxupquote{build}}) \textendash{} build environement if True
3607 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to display messages
3611 \end{description}\end{quote}
3617 \subsubsection{src.fileEnviron module}
3618 \label{\detokenize{commands/apidoc/src:src-fileenviron-module}}\label{\detokenize{commands/apidoc/src:module-src.fileEnviron}}\index{src.fileEnviron (module)}\index{BashFileEnviron (class in src.fileEnviron)}
3620 \begin{fulllineitems}
3621 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.BashFileEnviron}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.fileEnviron.}}\sphinxbfcode{\sphinxupquote{BashFileEnviron}}}{\emph{output}, \emph{environ=None}}{}
3622 Bases: {\hyperref[\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.fileEnviron.FileEnviron}}}}} (\autopageref*{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron}})
3624 Class for bash shell.
3625 \index{command\_value() (src.fileEnviron.BashFileEnviron method)}
3627 \begin{fulllineitems}
3628 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.BashFileEnviron.command_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{command\_value}}}{\emph{key}, \emph{command}}{}
3629 Get the value given by the system command “command”
3630 and put it in the environment variable key.
3631 Has to be overwritten in the derived classes
3632 This can be seen as a virtual method
3633 \begin{quote}\begin{description}
3634 \item[{Parameters}] \leavevmode\begin{itemize}
3636 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{command}}) \textendash{} the environment variable
3639 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the command to execute
3643 \end{description}\end{quote}
3647 \index{finish() (src.fileEnviron.BashFileEnviron method)}
3649 \begin{fulllineitems}
3650 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.BashFileEnviron.finish}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{finish}}}{\emph{required=True}}{}
3651 Add a final instruction in the out file (in case of file generation)
3652 \begin{quote}\begin{description}
3653 \item[{Parameters}] \leavevmode
3654 \sphinxstyleliteralstrong{\sphinxupquote{bool}} (\sphinxstyleliteralemphasis{\sphinxupquote{required}}) \textendash{} Do nothing if required is False
3656 \end{description}\end{quote}
3660 \index{set() (src.fileEnviron.BashFileEnviron method)}
3662 \begin{fulllineitems}
3663 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.BashFileEnviron.set}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set}}}{\emph{key}, \emph{value}}{}
3664 Set the environment variable “key” to value “value”
3665 \begin{quote}\begin{description}
3666 \item[{Parameters}] \leavevmode\begin{itemize}
3668 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the environment variable to set
3671 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value
3675 \end{description}\end{quote}
3682 \index{BatFileEnviron (class in src.fileEnviron)}
3684 \begin{fulllineitems}
3685 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.BatFileEnviron}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.fileEnviron.}}\sphinxbfcode{\sphinxupquote{BatFileEnviron}}}{\emph{output}, \emph{environ=None}}{}
3686 Bases: {\hyperref[\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.fileEnviron.FileEnviron}}}}} (\autopageref*{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron}})
3688 for Windows batch shell.
3689 \index{add\_comment() (src.fileEnviron.BatFileEnviron method)}
3691 \begin{fulllineitems}
3692 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.BatFileEnviron.add_comment}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_comment}}}{\emph{comment}}{}
3693 Add a comment in the shell file
3694 \begin{quote}\begin{description}
3695 \item[{Parameters}] \leavevmode
3696 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{comment}}) \textendash{} the comment to add
3698 \end{description}\end{quote}
3702 \index{command\_value() (src.fileEnviron.BatFileEnviron method)}
3704 \begin{fulllineitems}
3705 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.BatFileEnviron.command_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{command\_value}}}{\emph{key}, \emph{command}}{}
3706 Get the value given by the system command “command”
3707 and put it in the environment variable key.
3708 Has to be overwritten in the derived classes
3709 This can be seen as a virtual method
3710 \begin{quote}\begin{description}
3711 \item[{Parameters}] \leavevmode\begin{itemize}
3713 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{command}}) \textendash{} the environment variable
3716 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the command to execute
3720 \end{description}\end{quote}
3724 \index{finish() (src.fileEnviron.BatFileEnviron method)}
3726 \begin{fulllineitems}
3727 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.BatFileEnviron.finish}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{finish}}}{\emph{required=True}}{}
3728 Add a final instruction in the out file (in case of file generation)
3729 In the particular windows case, do nothing
3730 \begin{quote}\begin{description}
3731 \item[{Parameters}] \leavevmode
3732 \sphinxstyleliteralstrong{\sphinxupquote{bool}} (\sphinxstyleliteralemphasis{\sphinxupquote{required}}) \textendash{} Do nothing if required is False
3734 \end{description}\end{quote}
3738 \index{get() (src.fileEnviron.BatFileEnviron method)}
3740 \begin{fulllineitems}
3741 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.BatFileEnviron.get}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get}}}{\emph{key}}{}
3742 Get the value of the environment variable “key”
3743 \begin{quote}\begin{description}
3744 \item[{Parameters}] \leavevmode
3745 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable
3747 \end{description}\end{quote}
3751 \index{set() (src.fileEnviron.BatFileEnviron method)}
3753 \begin{fulllineitems}
3754 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.BatFileEnviron.set}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set}}}{\emph{key}, \emph{value}}{}
3755 Set the environment variable “key” to value “value”
3756 \begin{quote}\begin{description}
3757 \item[{Parameters}] \leavevmode\begin{itemize}
3759 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the environment variable to set
3762 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value
3766 \end{description}\end{quote}
3773 \index{ContextFileEnviron (class in src.fileEnviron)}
3775 \begin{fulllineitems}
3776 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ContextFileEnviron}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.fileEnviron.}}\sphinxbfcode{\sphinxupquote{ContextFileEnviron}}}{\emph{output}, \emph{environ=None}}{}
3777 Bases: {\hyperref[\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.fileEnviron.FileEnviron}}}}} (\autopageref*{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron}})
3779 Class for a salome context configuration file.
3780 \index{add\_echo() (src.fileEnviron.ContextFileEnviron method)}
3782 \begin{fulllineitems}
3783 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.add_echo}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_echo}}}{\emph{text}}{}
3785 \begin{quote}\begin{description}
3786 \item[{Parameters}] \leavevmode
3787 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{text}}) \textendash{} the comment to add
3789 \end{description}\end{quote}
3793 \index{add\_warning() (src.fileEnviron.ContextFileEnviron method)}
3795 \begin{fulllineitems}
3796 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.add_warning}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_warning}}}{\emph{warning}}{}
3798 \begin{quote}\begin{description}
3799 \item[{Parameters}] \leavevmode
3800 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{text}}) \textendash{} the warning to add
3802 \end{description}\end{quote}
3806 \index{append\_value() (src.fileEnviron.ContextFileEnviron method)}
3808 \begin{fulllineitems}
3809 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.append_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append\_value}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
3810 append value to key using sep
3811 \begin{quote}\begin{description}
3812 \item[{Parameters}] \leavevmode\begin{itemize}
3814 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to append
3817 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to append to key
3820 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
3824 \end{description}\end{quote}
3828 \index{command\_value() (src.fileEnviron.ContextFileEnviron method)}
3830 \begin{fulllineitems}
3831 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.command_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{command\_value}}}{\emph{key}, \emph{command}}{}
3832 Get the value given by the system command “command”
3833 and put it in the environment variable key.
3834 Has to be overwritten in the derived classes
3835 This can be seen as a virtual method
3836 \begin{quote}\begin{description}
3837 \item[{Parameters}] \leavevmode\begin{itemize}
3839 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{command}}) \textendash{} the environment variable
3842 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the command to execute
3846 \end{description}\end{quote}
3850 \index{finish() (src.fileEnviron.ContextFileEnviron method)}
3852 \begin{fulllineitems}
3853 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.finish}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{finish}}}{\emph{required=True}}{}
3854 Add a final instruction in the out file (in case of file generation)
3855 \begin{quote}\begin{description}
3856 \item[{Parameters}] \leavevmode
3857 \sphinxstyleliteralstrong{\sphinxupquote{bool}} (\sphinxstyleliteralemphasis{\sphinxupquote{required}}) \textendash{} Do nothing if required is False
3859 \end{description}\end{quote}
3863 \index{get() (src.fileEnviron.ContextFileEnviron method)}
3865 \begin{fulllineitems}
3866 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.get}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get}}}{\emph{key}}{}
3867 Get the value of the environment variable “key”
3868 \begin{quote}\begin{description}
3869 \item[{Parameters}] \leavevmode
3870 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable
3872 \end{description}\end{quote}
3876 \index{prepend\_value() (src.fileEnviron.ContextFileEnviron method)}
3878 \begin{fulllineitems}
3879 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.prepend_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepend\_value}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
3880 prepend value to key using sep
3881 \begin{quote}\begin{description}
3882 \item[{Parameters}] \leavevmode\begin{itemize}
3884 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to prepend
3887 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to prepend to key
3890 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
3894 \end{description}\end{quote}
3898 \index{set() (src.fileEnviron.ContextFileEnviron method)}
3900 \begin{fulllineitems}
3901 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.set}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set}}}{\emph{key}, \emph{value}}{}
3902 Set the environment variable “key” to value “value”
3903 \begin{quote}\begin{description}
3904 \item[{Parameters}] \leavevmode\begin{itemize}
3906 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the environment variable to set
3909 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value
3913 \end{description}\end{quote}
3920 \index{FileEnviron (class in src.fileEnviron)}
3922 \begin{fulllineitems}
3923 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.fileEnviron.}}\sphinxbfcode{\sphinxupquote{FileEnviron}}}{\emph{output}, \emph{environ=None}}{}
3924 Bases: \sphinxcode{\sphinxupquote{object}}
3926 Base class for shell environment
3927 \index{add\_comment() (src.fileEnviron.FileEnviron method)}
3929 \begin{fulllineitems}
3930 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.add_comment}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_comment}}}{\emph{comment}}{}
3931 Add a comment in the shell file
3932 \begin{quote}\begin{description}
3933 \item[{Parameters}] \leavevmode
3934 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{comment}}) \textendash{} the comment to add
3936 \end{description}\end{quote}
3940 \index{add\_echo() (src.fileEnviron.FileEnviron method)}
3942 \begin{fulllineitems}
3943 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.add_echo}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_echo}}}{\emph{text}}{}
3944 Add a “echo” in the shell file
3945 \begin{quote}\begin{description}
3946 \item[{Parameters}] \leavevmode
3947 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{text}}) \textendash{} the text to echo
3949 \end{description}\end{quote}
3953 \index{add\_line() (src.fileEnviron.FileEnviron method)}
3955 \begin{fulllineitems}
3956 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.add_line}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_line}}}{\emph{number}}{}
3957 Add some empty lines in the shell file
3958 \begin{quote}\begin{description}
3959 \item[{Parameters}] \leavevmode
3960 \sphinxstyleliteralstrong{\sphinxupquote{int}} (\sphinxstyleliteralemphasis{\sphinxupquote{number}}) \textendash{} the number of lines to add
3962 \end{description}\end{quote}
3966 \index{add\_warning() (src.fileEnviron.FileEnviron method)}
3968 \begin{fulllineitems}
3969 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.add_warning}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_warning}}}{\emph{warning}}{}
3970 Add a warning “echo” in the shell file
3971 \begin{quote}\begin{description}
3972 \item[{Parameters}] \leavevmode
3973 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{warning}}) \textendash{} the text to echo
3975 \end{description}\end{quote}
3979 \index{append() (src.fileEnviron.FileEnviron method)}
3981 \begin{fulllineitems}
3982 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.append}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
3983 Same as append\_value but the value argument can be a list
3984 \begin{quote}\begin{description}
3985 \item[{Parameters}] \leavevmode\begin{itemize}
3987 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to append
3990 \sphinxstyleliteralstrong{\sphinxupquote{str}}\sphinxstyleliteralstrong{\sphinxupquote{ or }}\sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the value(s) to append to key
3993 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
3997 \end{description}\end{quote}
4001 \index{append\_value() (src.fileEnviron.FileEnviron method)}
4003 \begin{fulllineitems}
4004 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.append_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append\_value}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
4005 append value to key using sep
4006 \begin{quote}\begin{description}
4007 \item[{Parameters}] \leavevmode\begin{itemize}
4009 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to append
4012 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to append to key
4015 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
4019 \end{description}\end{quote}
4023 \index{command\_value() (src.fileEnviron.FileEnviron method)}
4025 \begin{fulllineitems}
4026 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.command_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{command\_value}}}{\emph{key}, \emph{command}}{}
4027 Get the value given by the system command “command”
4028 and put it in the environment variable key.
4029 Has to be overwritten in the derived classes
4030 This can be seen as a virtual method
4031 \begin{quote}\begin{description}
4032 \item[{Parameters}] \leavevmode\begin{itemize}
4034 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{command}}) \textendash{} the environment variable
4037 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the command to execute
4041 \end{description}\end{quote}
4045 \index{finish() (src.fileEnviron.FileEnviron method)}
4047 \begin{fulllineitems}
4048 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.finish}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{finish}}}{\emph{required=True}}{}
4049 Add a final instruction in the out file (in case of file generation)
4050 \begin{quote}\begin{description}
4051 \item[{Parameters}] \leavevmode
4052 \sphinxstyleliteralstrong{\sphinxupquote{bool}} (\sphinxstyleliteralemphasis{\sphinxupquote{required}}) \textendash{} Do nothing if required is False
4054 \end{description}\end{quote}
4058 \index{get() (src.fileEnviron.FileEnviron method)}
4060 \begin{fulllineitems}
4061 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.get}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get}}}{\emph{key}}{}
4062 Get the value of the environment variable “key”
4063 \begin{quote}\begin{description}
4064 \item[{Parameters}] \leavevmode
4065 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable
4067 \end{description}\end{quote}
4071 \index{is\_defined() (src.fileEnviron.FileEnviron method)}
4073 \begin{fulllineitems}
4074 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.is_defined}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{is\_defined}}}{\emph{key}}{}
4075 Check if the key exists in the environment
4076 \begin{quote}\begin{description}
4077 \item[{Parameters}] \leavevmode
4078 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable to check
4080 \end{description}\end{quote}
4084 \index{prepend() (src.fileEnviron.FileEnviron method)}
4086 \begin{fulllineitems}
4087 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.prepend}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepend}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
4088 Same as prepend\_value but the value argument can be a list
4089 \begin{quote}\begin{description}
4090 \item[{Parameters}] \leavevmode\begin{itemize}
4092 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to prepend
4095 \sphinxstyleliteralstrong{\sphinxupquote{str}}\sphinxstyleliteralstrong{\sphinxupquote{ or }}\sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the value(s) to prepend to key
4098 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
4102 \end{description}\end{quote}
4106 \index{prepend\_value() (src.fileEnviron.FileEnviron method)}
4108 \begin{fulllineitems}
4109 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.prepend_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepend\_value}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
4110 prepend value to key using sep
4111 \begin{quote}\begin{description}
4112 \item[{Parameters}] \leavevmode\begin{itemize}
4114 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to prepend
4117 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to prepend to key
4120 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
4124 \end{description}\end{quote}
4128 \index{set() (src.fileEnviron.FileEnviron method)}
4130 \begin{fulllineitems}
4131 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.set}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set}}}{\emph{key}, \emph{value}}{}
4132 Set the environment variable ‘key’ to value ‘value’
4133 \begin{quote}\begin{description}
4134 \item[{Parameters}] \leavevmode\begin{itemize}
4136 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the environment variable to set
4139 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value
4143 \end{description}\end{quote}
4150 \index{LauncherFileEnviron (class in src.fileEnviron)}
4152 \begin{fulllineitems}
4153 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.fileEnviron.}}\sphinxbfcode{\sphinxupquote{LauncherFileEnviron}}}{\emph{output}, \emph{environ=None}}{}
4154 Class to generate a launcher file script
4155 (in python syntax) SalomeContext API
4156 \index{add() (src.fileEnviron.LauncherFileEnviron method)}
4158 \begin{fulllineitems}
4159 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.add}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add}}}{\emph{key}, \emph{value}}{}
4160 prepend value to key using sep
4161 \begin{quote}\begin{description}
4162 \item[{Parameters}] \leavevmode\begin{itemize}
4164 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the environment variable to prepend
4167 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to prepend to key
4171 \end{description}\end{quote}
4175 \index{add\_comment() (src.fileEnviron.LauncherFileEnviron method)}
4177 \begin{fulllineitems}
4178 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.add_comment}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_comment}}}{\emph{comment}}{}
4181 \index{add\_echo() (src.fileEnviron.LauncherFileEnviron method)}
4183 \begin{fulllineitems}
4184 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.add_echo}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_echo}}}{\emph{text}}{}
4186 \begin{quote}\begin{description}
4187 \item[{Parameters}] \leavevmode
4188 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{text}}) \textendash{} the comment to add
4190 \end{description}\end{quote}
4194 \index{add\_line() (src.fileEnviron.LauncherFileEnviron method)}
4196 \begin{fulllineitems}
4197 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.add_line}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_line}}}{\emph{number}}{}
4198 Add some empty lines in the launcher file
4199 \begin{quote}\begin{description}
4200 \item[{Parameters}] \leavevmode
4201 \sphinxstyleliteralstrong{\sphinxupquote{int}} (\sphinxstyleliteralemphasis{\sphinxupquote{number}}) \textendash{} the number of lines to add
4203 \end{description}\end{quote}
4207 \index{add\_warning() (src.fileEnviron.LauncherFileEnviron method)}
4209 \begin{fulllineitems}
4210 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.add_warning}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_warning}}}{\emph{warning}}{}
4212 \begin{quote}\begin{description}
4213 \item[{Parameters}] \leavevmode
4214 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{text}}) \textendash{} the warning to add
4216 \end{description}\end{quote}
4220 \index{append() (src.fileEnviron.LauncherFileEnviron method)}
4222 \begin{fulllineitems}
4223 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.append}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
4224 Same as append\_value but the value argument can be a list
4225 \begin{quote}\begin{description}
4226 \item[{Parameters}] \leavevmode\begin{itemize}
4228 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to append
4231 \sphinxstyleliteralstrong{\sphinxupquote{str}}\sphinxstyleliteralstrong{\sphinxupquote{ or }}\sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the value(s) to append to key
4234 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
4238 \end{description}\end{quote}
4242 \index{append\_value() (src.fileEnviron.LauncherFileEnviron method)}
4244 \begin{fulllineitems}
4245 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.append_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append\_value}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
4246 append value to key using sep
4247 \begin{quote}\begin{description}
4248 \item[{Parameters}] \leavevmode\begin{itemize}
4250 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to append
4253 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to append to key
4256 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
4260 \end{description}\end{quote}
4264 \index{change\_to\_launcher() (src.fileEnviron.LauncherFileEnviron method)}
4266 \begin{fulllineitems}
4267 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.change_to_launcher}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{change\_to\_launcher}}}{\emph{value}}{}
4270 \index{command\_value() (src.fileEnviron.LauncherFileEnviron method)}
4272 \begin{fulllineitems}
4273 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.command_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{command\_value}}}{\emph{key}, \emph{command}}{}
4274 Get the value given by the system command “command”
4275 and put it in the environment variable key.
4276 \begin{quote}\begin{description}
4277 \item[{Parameters}] \leavevmode\begin{itemize}
4279 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{command}}) \textendash{} the environment variable
4282 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the command to execute
4286 \end{description}\end{quote}
4290 \index{finish() (src.fileEnviron.LauncherFileEnviron method)}
4292 \begin{fulllineitems}
4293 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.finish}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{finish}}}{\emph{required=True}}{}
4294 Add a final instruction in the out file (in case of file generation)
4295 In the particular launcher case, do nothing
4296 \begin{quote}\begin{description}
4297 \item[{Parameters}] \leavevmode
4298 \sphinxstyleliteralstrong{\sphinxupquote{bool}} (\sphinxstyleliteralemphasis{\sphinxupquote{required}}) \textendash{} Do nothing if required is False
4300 \end{description}\end{quote}
4304 \index{get() (src.fileEnviron.LauncherFileEnviron method)}
4306 \begin{fulllineitems}
4307 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.get}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get}}}{\emph{key}}{}
4308 Get the value of the environment variable “key”
4309 \begin{quote}\begin{description}
4310 \item[{Parameters}] \leavevmode
4311 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable
4313 \end{description}\end{quote}
4317 \index{is\_defined() (src.fileEnviron.LauncherFileEnviron method)}
4319 \begin{fulllineitems}
4320 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.is_defined}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{is\_defined}}}{\emph{key}}{}
4321 Check if the key exists in the environment
4322 \begin{quote}\begin{description}
4323 \item[{Parameters}] \leavevmode
4324 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable to check
4326 \end{description}\end{quote}
4330 \index{prepend() (src.fileEnviron.LauncherFileEnviron method)}
4332 \begin{fulllineitems}
4333 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.prepend}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepend}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
4334 Same as prepend\_value but the value argument can be a list
4335 \begin{quote}\begin{description}
4336 \item[{Parameters}] \leavevmode\begin{itemize}
4338 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to prepend
4341 \sphinxstyleliteralstrong{\sphinxupquote{str}}\sphinxstyleliteralstrong{\sphinxupquote{ or }}\sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the value(s) to prepend to key
4344 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
4348 \end{description}\end{quote}
4352 \index{prepend\_value() (src.fileEnviron.LauncherFileEnviron method)}
4354 \begin{fulllineitems}
4355 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.prepend_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepend\_value}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
4356 prepend value to key using sep
4357 \begin{quote}\begin{description}
4358 \item[{Parameters}] \leavevmode\begin{itemize}
4360 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to prepend
4363 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to prepend to key
4366 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
4370 \end{description}\end{quote}
4374 \index{set() (src.fileEnviron.LauncherFileEnviron method)}
4376 \begin{fulllineitems}
4377 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.set}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set}}}{\emph{key}, \emph{value}}{}
4378 Set the environment variable “key” to value “value”
4379 \begin{quote}\begin{description}
4380 \item[{Parameters}] \leavevmode\begin{itemize}
4382 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the environment variable to set
4385 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value
4389 \end{description}\end{quote}
4396 \index{ScreenEnviron (class in src.fileEnviron)}
4398 \begin{fulllineitems}
4399 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.fileEnviron.}}\sphinxbfcode{\sphinxupquote{ScreenEnviron}}}{\emph{output}, \emph{environ=None}}{}
4400 Bases: {\hyperref[\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.fileEnviron.FileEnviron}}}}} (\autopageref*{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron}})
4401 \index{add\_comment() (src.fileEnviron.ScreenEnviron method)}
4403 \begin{fulllineitems}
4404 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.add_comment}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_comment}}}{\emph{comment}}{}
4405 Add a comment in the shell file
4406 \begin{quote}\begin{description}
4407 \item[{Parameters}] \leavevmode
4408 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{comment}}) \textendash{} the comment to add
4410 \end{description}\end{quote}
4414 \index{add\_echo() (src.fileEnviron.ScreenEnviron method)}
4416 \begin{fulllineitems}
4417 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.add_echo}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_echo}}}{\emph{text}}{}
4418 Add a “echo” in the shell file
4419 \begin{quote}\begin{description}
4420 \item[{Parameters}] \leavevmode
4421 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{text}}) \textendash{} the text to echo
4423 \end{description}\end{quote}
4427 \index{add\_line() (src.fileEnviron.ScreenEnviron method)}
4429 \begin{fulllineitems}
4430 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.add_line}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_line}}}{\emph{number}}{}
4431 Add some empty lines in the shell file
4432 \begin{quote}\begin{description}
4433 \item[{Parameters}] \leavevmode
4434 \sphinxstyleliteralstrong{\sphinxupquote{int}} (\sphinxstyleliteralemphasis{\sphinxupquote{number}}) \textendash{} the number of lines to add
4436 \end{description}\end{quote}
4440 \index{add\_warning() (src.fileEnviron.ScreenEnviron method)}
4442 \begin{fulllineitems}
4443 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.add_warning}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_warning}}}{\emph{warning}}{}
4444 Add a warning “echo” in the shell file
4445 \begin{quote}\begin{description}
4446 \item[{Parameters}] \leavevmode
4447 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{warning}}) \textendash{} the text to echo
4449 \end{description}\end{quote}
4453 \index{append() (src.fileEnviron.ScreenEnviron method)}
4455 \begin{fulllineitems}
4456 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.append}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append}}}{\emph{name}, \emph{value}, \emph{sep=':'}}{}
4457 Same as append\_value but the value argument can be a list
4458 \begin{quote}\begin{description}
4459 \item[{Parameters}] \leavevmode\begin{itemize}
4461 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to append
4464 \sphinxstyleliteralstrong{\sphinxupquote{str}}\sphinxstyleliteralstrong{\sphinxupquote{ or }}\sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the value(s) to append to key
4467 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
4471 \end{description}\end{quote}
4475 \index{command\_value() (src.fileEnviron.ScreenEnviron method)}
4477 \begin{fulllineitems}
4478 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.command_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{command\_value}}}{\emph{key}, \emph{command}}{}
4479 Get the value given by the system command “command”
4480 and put it in the environment variable key.
4481 Has to be overwritten in the derived classes
4482 This can be seen as a virtual method
4483 \begin{quote}\begin{description}
4484 \item[{Parameters}] \leavevmode\begin{itemize}
4486 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{command}}) \textendash{} the environment variable
4489 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the command to execute
4493 \end{description}\end{quote}
4497 \index{get() (src.fileEnviron.ScreenEnviron method)}
4499 \begin{fulllineitems}
4500 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.get}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get}}}{\emph{name}}{}
4501 Get the value of the environment variable “key”
4502 \begin{quote}\begin{description}
4503 \item[{Parameters}] \leavevmode
4504 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable
4506 \end{description}\end{quote}
4510 \index{is\_defined() (src.fileEnviron.ScreenEnviron method)}
4512 \begin{fulllineitems}
4513 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.is_defined}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{is\_defined}}}{\emph{name}}{}
4514 Check if the key exists in the environment
4515 \begin{quote}\begin{description}
4516 \item[{Parameters}] \leavevmode
4517 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable to check
4519 \end{description}\end{quote}
4523 \index{prepend() (src.fileEnviron.ScreenEnviron method)}
4525 \begin{fulllineitems}
4526 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.prepend}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepend}}}{\emph{name}, \emph{value}, \emph{sep=':'}}{}
4527 Same as prepend\_value but the value argument can be a list
4528 \begin{quote}\begin{description}
4529 \item[{Parameters}] \leavevmode\begin{itemize}
4531 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to prepend
4534 \sphinxstyleliteralstrong{\sphinxupquote{str}}\sphinxstyleliteralstrong{\sphinxupquote{ or }}\sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the value(s) to prepend to key
4537 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
4541 \end{description}\end{quote}
4545 \index{run\_env\_script() (src.fileEnviron.ScreenEnviron method)}
4547 \begin{fulllineitems}
4548 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.run_env_script}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{run\_env\_script}}}{\emph{module}, \emph{script}}{}
4551 \index{set() (src.fileEnviron.ScreenEnviron method)}
4553 \begin{fulllineitems}
4554 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.set}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set}}}{\emph{name}, \emph{value}}{}
4555 Set the environment variable ‘key’ to value ‘value’
4556 \begin{quote}\begin{description}
4557 \item[{Parameters}] \leavevmode\begin{itemize}
4559 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the environment variable to set
4562 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value
4566 \end{description}\end{quote}
4570 \index{write() (src.fileEnviron.ScreenEnviron method)}
4572 \begin{fulllineitems}
4573 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.write}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{write}}}{\emph{command}, \emph{name}, \emph{value}, \emph{sign='='}}{}
4579 \index{get\_file\_environ() (in module src.fileEnviron)}
4581 \begin{fulllineitems}
4582 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.get_file_environ}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.fileEnviron.}}\sphinxbfcode{\sphinxupquote{get\_file\_environ}}}{\emph{output}, \emph{shell}, \emph{environ=None}}{}
4583 Instantiate correct FileEnvironment sub-class.
4584 \begin{quote}\begin{description}
4585 \item[{Parameters}] \leavevmode\begin{itemize}
4587 \sphinxstyleliteralstrong{\sphinxupquote{file}} (\sphinxstyleliteralemphasis{\sphinxupquote{output}}) \textendash{} the output file stream.
4590 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{shell}}) \textendash{} the type of shell syntax to use.
4593 \sphinxstyleliteralstrong{\sphinxupquote{dict}} (\sphinxstyleliteralemphasis{\sphinxupquote{environ}}) \textendash{} a potential additional environment.
4597 \end{description}\end{quote}
4601 \index{special\_path\_separator() (in module src.fileEnviron)}
4603 \begin{fulllineitems}
4604 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.special_path_separator}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.fileEnviron.}}\sphinxbfcode{\sphinxupquote{special\_path\_separator}}}{\emph{name}}{}
4605 TCLLIBPATH, TKLIBPATH, PV\_PLUGIN\_PATH environments variables need
4606 some exotic path separator.
4607 This function gives the separator regarding the name of the variable
4608 to append or prepend.
4609 \begin{quote}\begin{description}
4610 \item[{Parameters}] \leavevmode
4611 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{name}}) \textendash{} The name of the variable to find the separator
4613 \end{description}\end{quote}
4619 \subsubsection{src.fork module}
4620 \label{\detokenize{commands/apidoc/src:module-src.fork}}\label{\detokenize{commands/apidoc/src:src-fork-module}}\index{src.fork (module)}\index{batch() (in module src.fork)}
4622 \begin{fulllineitems}
4623 \phantomsection\label{\detokenize{commands/apidoc/src:src.fork.batch}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.fork.}}\sphinxbfcode{\sphinxupquote{batch}}}{\emph{cmd}, \emph{logger}, \emph{cwd}, \emph{args={[}{]}}, \emph{log=None}, \emph{delai=20}, \emph{sommeil=1}}{}
4626 \index{batch\_salome() (in module src.fork)}
4628 \begin{fulllineitems}
4629 \phantomsection\label{\detokenize{commands/apidoc/src:src.fork.batch_salome}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.fork.}}\sphinxbfcode{\sphinxupquote{batch\_salome}}}{\emph{cmd}, \emph{logger}, \emph{cwd}, \emph{args}, \emph{getTmpDir}, \emph{pendant='SALOME\_Session\_Server'}, \emph{fin='killSalome.py'}, \emph{log=None}, \emph{delai=20}, \emph{sommeil=1}, \emph{delaiapp=0}}{}
4632 \index{launch\_command() (in module src.fork)}
4634 \begin{fulllineitems}
4635 \phantomsection\label{\detokenize{commands/apidoc/src:src.fork.launch_command}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.fork.}}\sphinxbfcode{\sphinxupquote{launch\_command}}}{\emph{cmd}, \emph{logger}, \emph{cwd}, \emph{args={[}{]}}, \emph{log=None}}{}
4638 \index{show\_progress() (in module src.fork)}
4640 \begin{fulllineitems}
4641 \phantomsection\label{\detokenize{commands/apidoc/src:src.fork.show_progress}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.fork.}}\sphinxbfcode{\sphinxupquote{show\_progress}}}{\emph{logger}, \emph{top}, \emph{delai}, \emph{ss=''}}{}
4642 shortcut function to display the progression
4643 \begin{quote}\begin{description}
4644 \item[{Parameters}] \leavevmode\begin{itemize}
4646 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logging instance
4649 \sphinxstyleliteralstrong{\sphinxupquote{int}} (\sphinxstyleliteralemphasis{\sphinxupquote{delai}}) \textendash{} the number to display
4652 \sphinxstyleliteralstrong{\sphinxupquote{int}} \textendash{} the number max
4655 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{ss}}) \textendash{} the string to display
4659 \end{description}\end{quote}
4663 \index{write\_back() (in module src.fork)}
4665 \begin{fulllineitems}
4666 \phantomsection\label{\detokenize{commands/apidoc/src:src.fork.write_back}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.fork.}}\sphinxbfcode{\sphinxupquote{write\_back}}}{\emph{logger}, \emph{message}, \emph{level}}{}
4667 shortcut function to write at the begin of the line
4668 \begin{quote}\begin{description}
4669 \item[{Parameters}] \leavevmode\begin{itemize}
4671 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logging instance
4674 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{message}}) \textendash{} the text to display
4677 \sphinxstyleliteralstrong{\sphinxupquote{int}} (\sphinxstyleliteralemphasis{\sphinxupquote{level}}) \textendash{} the level of verbosity
4681 \end{description}\end{quote}
4687 \subsubsection{src.logger module}
4688 \label{\detokenize{commands/apidoc/src:module-src.logger}}\label{\detokenize{commands/apidoc/src:src-logger-module}}\index{src.logger (module)}
4689 Implements the classes and method relative to the logging
4690 \index{Logger (class in src.logger)}
4692 \begin{fulllineitems}
4693 \phantomsection\label{\detokenize{commands/apidoc/src:src.logger.Logger}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.logger.}}\sphinxbfcode{\sphinxupquote{Logger}}}{\emph{config}, \emph{silent\_sysstd=False}, \emph{all\_in\_terminal=False}, \emph{micro\_command=False}}{}
4694 Bases: \sphinxcode{\sphinxupquote{object}}
4696 Class to handle log mechanism.
4697 \index{add\_link() (src.logger.Logger method)}
4699 \begin{fulllineitems}
4700 \phantomsection\label{\detokenize{commands/apidoc/src:src.logger.Logger.add_link}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_link}}}{\emph{log\_file\_name}, \emph{command\_name}, \emph{command\_res}, \emph{full\_launched\_command}}{}
4701 Add a link to another log file.
4702 \begin{quote}\begin{description}
4703 \item[{Parameters}] \leavevmode\begin{itemize}
4705 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{command\_res}}) \textendash{} The file name of the link.
4708 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The name of the command linked.
4711 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The result of the command linked. “0” or “1”
4715 \item[{Parma full\_launched\_command str}] \leavevmode
4716 The full lanch command
4719 \end{description}\end{quote}
4723 \index{end\_write() (src.logger.Logger method)}
4725 \begin{fulllineitems}
4726 \phantomsection\label{\detokenize{commands/apidoc/src:src.logger.Logger.end_write}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{end\_write}}}{\emph{attribute}}{}
4727 Called just after command end: Put all fields
4728 corresponding to the command end context (time).
4729 Write the log xml file on the hard drive.
4730 And display the command to launch to get the log
4731 \begin{quote}\begin{description}
4732 \item[{Parameters}] \leavevmode
4733 \sphinxstyleliteralstrong{\sphinxupquote{dict}} (\sphinxstyleliteralemphasis{\sphinxupquote{attribute}}) \textendash{} the attribute to add to the node “Site”.
4735 \end{description}\end{quote}
4739 \index{error() (src.logger.Logger method)}
4741 \begin{fulllineitems}
4742 \phantomsection\label{\detokenize{commands/apidoc/src:src.logger.Logger.error}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{error}}}{\emph{message}}{}
4744 \begin{quote}\begin{description}
4745 \item[{Parameters}] \leavevmode
4746 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{message}}) \textendash{} The message to print.
4748 \end{description}\end{quote}
4752 \index{flush() (src.logger.Logger method)}
4754 \begin{fulllineitems}
4755 \phantomsection\label{\detokenize{commands/apidoc/src:src.logger.Logger.flush}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{flush}}}{}{}
4760 \index{put\_initial\_xml\_fields() (src.logger.Logger method)}
4762 \begin{fulllineitems}
4763 \phantomsection\label{\detokenize{commands/apidoc/src:src.logger.Logger.put_initial_xml_fields}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{put\_initial\_xml\_fields}}}{}{}
4764 Called at class initialization: Put all fields
4765 corresponding to the command context (user, time, …)
4769 \index{write() (src.logger.Logger method)}
4771 \begin{fulllineitems}
4772 \phantomsection\label{\detokenize{commands/apidoc/src:src.logger.Logger.write}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{write}}}{\emph{message}, \emph{level=None}, \emph{screenOnly=False}}{}
4773 function used in the commands
4774 to print in the terminal and the log file.
4775 \begin{quote}\begin{description}
4776 \item[{Parameters}] \leavevmode\begin{itemize}
4778 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{message}}) \textendash{} The message to print.
4781 \sphinxstyleliteralstrong{\sphinxupquote{int}} (\sphinxstyleliteralemphasis{\sphinxupquote{level}}) \textendash{} The output level corresponding
4782 to the message 0 \textless{} level \textless{} 6.
4785 \sphinxstyleliteralstrong{\sphinxupquote{boolean}} (\sphinxstyleliteralemphasis{\sphinxupquote{screenOnly}}) \textendash{} if True, do not write in log file.
4789 \end{description}\end{quote}
4796 \index{date\_to\_datetime() (in module src.logger)}
4798 \begin{fulllineitems}
4799 \phantomsection\label{\detokenize{commands/apidoc/src:src.logger.date_to_datetime}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.logger.}}\sphinxbfcode{\sphinxupquote{date\_to\_datetime}}}{\emph{date}}{}
4800 From a string date in format YYYYMMDD\_HHMMSS
4801 returns list year, mon, day, hour, minutes, seconds
4802 \begin{quote}\begin{description}
4803 \item[{Parameters}] \leavevmode
4804 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{date}}) \textendash{} The date in format YYYYMMDD\_HHMMSS
4806 \item[{Returns}] \leavevmode
4807 the same date and time in separate variables.
4809 \item[{Return type}] \leavevmode
4810 (str,str,str,str,str,str)
4812 \end{description}\end{quote}
4816 \index{list\_log\_file() (in module src.logger)}
4818 \begin{fulllineitems}
4819 \phantomsection\label{\detokenize{commands/apidoc/src:src.logger.list_log_file}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.logger.}}\sphinxbfcode{\sphinxupquote{list\_log\_file}}}{\emph{dirPath}, \emph{expression}}{}
4820 Find all files corresponding to expression in dirPath
4821 \begin{quote}\begin{description}
4822 \item[{Parameters}] \leavevmode\begin{itemize}
4824 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{expression}}) \textendash{} the directory where to search the files
4827 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the regular expression of files to find
4831 \item[{Returns}] \leavevmode
4832 the list of files path and informations about it
4834 \item[{Return type}] \leavevmode
4837 \end{description}\end{quote}
4841 \index{show\_command\_log() (in module src.logger)}
4843 \begin{fulllineitems}
4844 \phantomsection\label{\detokenize{commands/apidoc/src:src.logger.show_command_log}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.logger.}}\sphinxbfcode{\sphinxupquote{show\_command\_log}}}{\emph{logFilePath}, \emph{cmd}, \emph{application}, \emph{notShownCommands}}{}
4845 Used in updateHatXml.
4846 Determine if the log xml file logFilePath
4847 has to be shown or not in the hat log.
4848 \begin{quote}\begin{description}
4849 \item[{Parameters}] \leavevmode\begin{itemize}
4851 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{application}}) \textendash{} the path to the command xml log file
4854 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the command of the log file
4857 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the application passed as parameter
4858 to the salomeTools command
4861 \sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{notShownCommands}}) \textendash{} the list of commands
4862 that are not shown by default
4866 \item[{Returns}] \leavevmode
4867 True if cmd is not in notShownCommands and the application
4868 in the log file corresponds to application
4870 \item[{Return type}] \leavevmode
4873 \end{description}\end{quote}
4877 \index{timedelta\_total\_seconds() (in module src.logger)}
4879 \begin{fulllineitems}
4880 \phantomsection\label{\detokenize{commands/apidoc/src:src.logger.timedelta_total_seconds}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.logger.}}\sphinxbfcode{\sphinxupquote{timedelta\_total\_seconds}}}{\emph{timedelta}}{}
4881 Replace total\_seconds from datetime module
4882 in order to be compatible with old python versions
4883 \begin{quote}\begin{description}
4884 \item[{Parameters}] \leavevmode
4885 \sphinxstyleliteralstrong{\sphinxupquote{datetime.timedelta}} (\sphinxstyleliteralemphasis{\sphinxupquote{timedelta}}) \textendash{} The delta between two dates
4887 \item[{Returns}] \leavevmode
4888 The number of seconds corresponding to timedelta.
4890 \item[{Return type}] \leavevmode
4893 \end{description}\end{quote}
4897 \index{update\_hat\_xml() (in module src.logger)}
4899 \begin{fulllineitems}
4900 \phantomsection\label{\detokenize{commands/apidoc/src:src.logger.update_hat_xml}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.logger.}}\sphinxbfcode{\sphinxupquote{update\_hat\_xml}}}{\emph{logDir}, \emph{application=None}, \emph{notShownCommands={[}{]}}}{}
4901 Create the xml file in logDir that contain all the xml file
4902 and have a name like YYYYMMDD\_HHMMSS\_namecmd.xml
4903 \begin{quote}\begin{description}
4904 \item[{Parameters}] \leavevmode\begin{itemize}
4906 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{application}}) \textendash{} the directory to parse
4909 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the name of the application if there is any
4913 \end{description}\end{quote}
4919 \subsubsection{src.options module}
4920 \label{\detokenize{commands/apidoc/src:module-src.options}}\label{\detokenize{commands/apidoc/src:src-options-module}}\index{src.options (module)}
4921 The Options class that manages the access to all options passed as
4922 parameters in salomeTools command lines
4923 \index{OptResult (class in src.options)}
4925 \begin{fulllineitems}
4926 \phantomsection\label{\detokenize{commands/apidoc/src:src.options.OptResult}}\pysigline{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.options.}}\sphinxbfcode{\sphinxupquote{OptResult}}}
4927 Bases: \sphinxcode{\sphinxupquote{object}}
4929 An instance of this class will be the object manipulated
4930 in code of all salomeTools commands
4931 The aim of this class is to have an elegant syntax to manipulate the options.
4933 \begin{DUlineblock}{0em}
4935 \item[] \textgreater{}\textgreater{} options, remainderArgs = command.parseArguments(args)
4936 \item[] \textgreater{}\textgreater{} print(options.output\_verbose\_level)
4937 \item[] \textgreater{}\textgreater{} ‘INFO’
4942 \index{Options (class in src.options)}
4944 \begin{fulllineitems}
4945 \phantomsection\label{\detokenize{commands/apidoc/src:src.options.Options}}\pysigline{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.options.}}\sphinxbfcode{\sphinxupquote{Options}}}
4946 Bases: \sphinxcode{\sphinxupquote{object}}
4948 Class to manage all salomeTools options
4949 \index{add\_option() (src.options.Options method)}
4951 \begin{fulllineitems}
4952 \phantomsection\label{\detokenize{commands/apidoc/src:src.options.Options.add_option}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_option}}}{\emph{shortName}, \emph{longName}, \emph{optionType}, \emph{destName}, \emph{helpString=''}, \emph{default=None}}{}
4953 Add an option to a command. It gets all attributes
4954 of an option and append it in the options field
4955 \begin{quote}\begin{description}
4956 \item[{Parameters}] \leavevmode\begin{itemize}
4958 \sphinxstyleliteralstrong{\sphinxupquote{shortName}} \textendash{} (str)
4959 The short name of the option (as ‘-l’ for level option).
4962 \sphinxstyleliteralstrong{\sphinxupquote{longName}} \textendash{} (str)
4963 The long name of the option (as ‘\textendash{}level’ for level option).
4966 \sphinxstyleliteralstrong{\sphinxupquote{optionType}} \textendash{} (str) The type of the option (ex “int”).
4969 \sphinxstyleliteralstrong{\sphinxupquote{destName}} \textendash{} (str) The name that will be used in the code.
4972 \sphinxstyleliteralstrong{\sphinxupquote{helpString}} \textendash{} (str)
4973 The text to display when user ask for help on a command.
4977 \item[{Returns}] \leavevmode
4980 \end{description}\end{quote}
4984 \index{debug\_write() (src.options.Options method)}
4986 \begin{fulllineitems}
4987 \phantomsection\label{\detokenize{commands/apidoc/src:src.options.Options.debug_write}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{debug\_write}}}{}{}
4990 \index{filterLevel() (src.options.Options method)}
4992 \begin{fulllineitems}
4993 \phantomsection\label{\detokenize{commands/apidoc/src:src.options.Options.filterLevel}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{filterLevel}}}{\emph{aLevel}}{}
4994 filter level logging values
4998 \index{filterList2() (src.options.Options method)}
5000 \begin{fulllineitems}
5001 \phantomsection\label{\detokenize{commands/apidoc/src:src.options.Options.filterList2}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{filterList2}}}{\emph{aStr}}{}
5002 filter a list as ‘KERNEL,YACS,etc.’
5006 \index{getDetailOption() (src.options.Options method)}
5008 \begin{fulllineitems}
5009 \phantomsection\label{\detokenize{commands/apidoc/src:src.options.Options.getDetailOption}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{getDetailOption}}}{\emph{option}}{}
5011 \begin{quote}\begin{description}
5012 \item[{Returns}] \leavevmode
5013 (tuple) 4-elements (shortName, longName, optionType, helpString)
5015 \end{description}\end{quote}
5019 \index{get\_help() (src.options.Options method)}
5021 \begin{fulllineitems}
5022 \phantomsection\label{\detokenize{commands/apidoc/src:src.options.Options.get_help}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get\_help}}}{}{}
5023 Returns all options stored in self.options
5024 as help message colored string
5025 \begin{quote}\begin{description}
5026 \item[{Returns}] \leavevmode
5027 (str) colored string
5029 \end{description}\end{quote}
5033 \index{indent() (src.options.Options method)}
5035 \begin{fulllineitems}
5036 \phantomsection\label{\detokenize{commands/apidoc/src:src.options.Options.indent}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{indent}}}{\emph{text}, \emph{amount}, \emph{car=' '}}{}
5037 indent multi lines message
5041 \index{parse\_args() (src.options.Options method)}
5043 \begin{fulllineitems}
5044 \phantomsection\label{\detokenize{commands/apidoc/src:src.options.Options.parse_args}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parse\_args}}}{\emph{argList=None}}{}
5045 Instantiates the class OptResult
5046 that gives access to all options in the code
5047 \begin{quote}\begin{description}
5048 \item[{Parameters}] \leavevmode
5049 \sphinxstyleliteralstrong{\sphinxupquote{argList}} \textendash{} (list) the raw list of arguments that were passed
5051 \item[{Returns}] \leavevmode
5052 (OptResult, list) as (optResult, args)
5053 optResult is the option instance to manipulate in the code.
5054 args is the full raw list of passed options
5056 \end{description}\end{quote}
5060 \index{print\_help() (src.options.Options method)}
5062 \begin{fulllineitems}
5063 \phantomsection\label{\detokenize{commands/apidoc/src:src.options.Options.print_help}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{print\_help}}}{}{}
5064 Method that display all options stored in self.options and there help
5065 \begin{quote}\begin{description}
5066 \item[{Returns}] \leavevmode
5069 \end{description}\end{quote}
5078 \subsubsection{src.printcolors module}
5079 \label{\detokenize{commands/apidoc/src:module-src.printcolors}}\label{\detokenize{commands/apidoc/src:src-printcolors-module}}\index{src.printcolors (module)}
5080 In this file is stored the mechanism that manage color prints in the terminal
5081 \index{cleancolor() (in module src.printcolors)}
5083 \begin{fulllineitems}
5084 \phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.cleancolor}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{cleancolor}}}{\emph{message}}{}
5085 remove color from a colored text.
5086 \begin{quote}\begin{description}
5087 \item[{Parameters}] \leavevmode
5088 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{message}}) \textendash{} The text to be cleaned.
5090 \item[{Returns}] \leavevmode
5093 \item[{Return type}] \leavevmode
5096 \end{description}\end{quote}
5100 \index{print\_color\_map() (in module src.printcolors)}
5102 \begin{fulllineitems}
5103 \phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.print_color_map}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{print\_color\_map}}}{}{}
5104 This method prints the color map
5108 \index{print\_color\_range() (in module src.printcolors)}
5110 \begin{fulllineitems}
5111 \phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.print_color_range}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{print\_color\_range}}}{\emph{start}, \emph{end}}{}
5112 print possible range values for colors
5113 \begin{quote}\begin{description}
5114 \item[{Parameters}] \leavevmode\begin{itemize}
5116 \sphinxstyleliteralstrong{\sphinxupquote{int}} (\sphinxstyleliteralemphasis{\sphinxupquote{end}}) \textendash{} The smaller value.
5119 \sphinxstyleliteralstrong{\sphinxupquote{int}} \textendash{} The bigger value.
5123 \end{description}\end{quote}
5127 \index{print\_value() (in module src.printcolors)}
5129 \begin{fulllineitems}
5130 \phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.print_value}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{print\_value}}}{\emph{logger}, \emph{label}, \emph{value}, \emph{level=1}, \emph{suffix=''}}{}
5131 shortcut method to print a label and a value with the info color
5132 \begin{quote}\begin{description}
5133 \item[{Parameters}] \leavevmode\begin{itemize}
5135 \sphinxstyleliteralstrong{\sphinxupquote{class logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} the logger instance.
5138 \sphinxstyleliteralstrong{\sphinxupquote{int}} (\sphinxstyleliteralemphasis{\sphinxupquote{level}}) \textendash{} the label to print.
5141 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{suffix}}) \textendash{} the value to print.
5144 \sphinxstyleliteralstrong{\sphinxupquote{int}} \textendash{} the level of verboseness.
5147 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the suffix to add at the end.
5151 \end{description}\end{quote}
5155 \index{printc() (in module src.printcolors)}
5157 \begin{fulllineitems}
5158 \phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.printc}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{printc}}}{\emph{txt}, \emph{code=''}}{}
5159 print a text with colors
5160 \begin{quote}\begin{description}
5161 \item[{Parameters}] \leavevmode\begin{itemize}
5163 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{code}}) \textendash{} The text to be printed.
5166 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The color to use.
5170 \item[{Returns}] \leavevmode
5173 \item[{Return type}] \leavevmode
5176 \end{description}\end{quote}
5180 \index{printcError() (in module src.printcolors)}
5182 \begin{fulllineitems}
5183 \phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.printcError}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{printcError}}}{\emph{txt}}{}
5184 print a text error color
5185 \begin{quote}\begin{description}
5186 \item[{Parameters}] \leavevmode
5187 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{txt}}) \textendash{} The text to be printed.
5189 \item[{Returns}] \leavevmode
5192 \item[{Return type}] \leavevmode
5195 \end{description}\end{quote}
5199 \index{printcHeader() (in module src.printcolors)}
5201 \begin{fulllineitems}
5202 \phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.printcHeader}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{printcHeader}}}{\emph{txt}}{}
5203 print a text header color
5204 \begin{quote}\begin{description}
5205 \item[{Parameters}] \leavevmode
5206 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{txt}}) \textendash{} The text to be printed.
5208 \item[{Returns}] \leavevmode
5211 \item[{Return type}] \leavevmode
5214 \end{description}\end{quote}
5218 \index{printcHighlight() (in module src.printcolors)}
5220 \begin{fulllineitems}
5221 \phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.printcHighlight}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{printcHighlight}}}{\emph{txt}}{}
5222 print a text highlight color
5223 \begin{quote}\begin{description}
5224 \item[{Parameters}] \leavevmode
5225 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{txt}}) \textendash{} The text to be printed.
5227 \item[{Returns}] \leavevmode
5230 \item[{Return type}] \leavevmode
5233 \end{description}\end{quote}
5237 \index{printcInfo() (in module src.printcolors)}
5239 \begin{fulllineitems}
5240 \phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.printcInfo}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{printcInfo}}}{\emph{txt}}{}
5241 print a text info color
5242 \begin{quote}\begin{description}
5243 \item[{Parameters}] \leavevmode
5244 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{txt}}) \textendash{} The text to be printed.
5246 \item[{Returns}] \leavevmode
5249 \item[{Return type}] \leavevmode
5252 \end{description}\end{quote}
5256 \index{printcLabel() (in module src.printcolors)}
5258 \begin{fulllineitems}
5259 \phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.printcLabel}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{printcLabel}}}{\emph{txt}}{}
5260 print a text label color
5261 \begin{quote}\begin{description}
5262 \item[{Parameters}] \leavevmode
5263 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{txt}}) \textendash{} The text to be printed.
5265 \item[{Returns}] \leavevmode
5268 \item[{Return type}] \leavevmode
5271 \end{description}\end{quote}
5275 \index{printcSuccess() (in module src.printcolors)}
5277 \begin{fulllineitems}
5278 \phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.printcSuccess}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{printcSuccess}}}{\emph{txt}}{}
5279 print a text success color
5280 \begin{quote}\begin{description}
5281 \item[{Parameters}] \leavevmode
5282 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{txt}}) \textendash{} The text to be printed.
5284 \item[{Returns}] \leavevmode
5287 \item[{Return type}] \leavevmode
5290 \end{description}\end{quote}
5294 \index{printcWarning() (in module src.printcolors)}
5296 \begin{fulllineitems}
5297 \phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.printcWarning}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{printcWarning}}}{\emph{txt}}{}
5298 print a text warning color
5299 \begin{quote}\begin{description}
5300 \item[{Parameters}] \leavevmode
5301 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{txt}}) \textendash{} The text to be printed.
5303 \item[{Returns}] \leavevmode
5306 \item[{Return type}] \leavevmode
5309 \end{description}\end{quote}
5315 \subsubsection{src.product module}
5316 \label{\detokenize{commands/apidoc/src:module-src.product}}\label{\detokenize{commands/apidoc/src:src-product-module}}\index{src.product (module)}
5317 In this file are implemented the methods
5318 relative to the product notion of salomeTools
5319 \index{check\_config\_exists() (in module src.product)}
5321 \begin{fulllineitems}
5322 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.check_config_exists}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{check\_config\_exists}}}{\emph{config}, \emph{prod\_dir}, \emph{prod\_info}}{}
5323 Verify that the installation directory of a product in a base exists
5324 Check all the config-\textless{}i\textgreater{} directory and verify the sat-config.pyconf file
5326 \begin{quote}\begin{description}
5327 \item[{Parameters}] \leavevmode\begin{itemize}
5329 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The global configuration
5332 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{prod\_dir}}) \textendash{} The product installation directory path
5333 (without config-\textless{}i\textgreater{})
5336 \sphinxstyleliteralstrong{\sphinxupquote{Config}} \textendash{} The configuration specific to
5341 \item[{Returns}] \leavevmode
5342 True or false is the installation is found or not
5343 and if it is found, the path of the found installation
5345 \item[{Return type}] \leavevmode
5348 \end{description}\end{quote}
5352 \index{check\_installation() (in module src.product)}
5354 \begin{fulllineitems}
5355 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.check_installation}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{check\_installation}}}{\emph{product\_info}}{}
5356 Verify if a product is well installed. Checks install directory presence
5357 and some additional files if it is defined in the config
5358 \begin{quote}\begin{description}
5359 \item[{Parameters}] \leavevmode
5360 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5363 \item[{Returns}] \leavevmode
5364 True if it is well installed
5366 \item[{Return type}] \leavevmode
5369 \end{description}\end{quote}
5373 \index{check\_source() (in module src.product)}
5375 \begin{fulllineitems}
5376 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.check_source}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{check\_source}}}{\emph{product\_info}}{}
5377 Verify if a sources of product is preset. Checks source directory presence
5378 \begin{quote}\begin{description}
5379 \item[{Parameters}] \leavevmode
5380 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5383 \item[{Returns}] \leavevmode
5384 True if it is well installed
5386 \item[{Return type}] \leavevmode
5389 \end{description}\end{quote}
5393 \index{get\_base\_install\_dir() (in module src.product)}
5395 \begin{fulllineitems}
5396 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.get_base_install_dir}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{get\_base\_install\_dir}}}{\emph{config}, \emph{prod\_info}, \emph{version}}{}
5397 Compute the installation directory of a product in base
5398 \begin{quote}\begin{description}
5399 \item[{Parameters}] \leavevmode\begin{itemize}
5401 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The global configuration
5404 \sphinxstyleliteralstrong{\sphinxupquote{Config}} \textendash{} The configuration specific to
5408 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{version}}) \textendash{} The version of the product
5412 \item[{Returns}] \leavevmode
5413 The path of the product installation
5415 \item[{Return type}] \leavevmode
5418 \end{description}\end{quote}
5422 \index{get\_install\_dir() (in module src.product)}
5424 \begin{fulllineitems}
5425 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.get_install_dir}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{get\_install\_dir}}}{\emph{config}, \emph{base}, \emph{version}, \emph{prod\_info}}{}
5426 Compute the installation directory of a given product
5427 \begin{quote}\begin{description}
5428 \item[{Parameters}] \leavevmode\begin{itemize}
5430 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The global configuration
5433 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{version}}) \textendash{} This corresponds to the value given by user in its
5434 application.pyconf for the specific product. If “yes”, the
5435 user wants the product to be in base. If “no”, he wants the
5436 product to be in the application workdir
5439 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The version of the product
5442 \sphinxstyleliteralstrong{\sphinxupquote{Config}} \textendash{} The configuration specific to
5447 \item[{Returns}] \leavevmode
5448 The path of the product installation
5450 \item[{Return type}] \leavevmode
5453 \end{description}\end{quote}
5457 \index{get\_product\_components() (in module src.product)}
5459 \begin{fulllineitems}
5460 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.get_product_components}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{get\_product\_components}}}{\emph{product\_info}}{}
5461 Get the component list to generate with the product
5462 \begin{quote}\begin{description}
5463 \item[{Parameters}] \leavevmode
5464 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5467 \item[{Returns}] \leavevmode
5468 The list of names of the components
5470 \item[{Return type}] \leavevmode
5473 \end{description}\end{quote}
5477 \index{get\_product\_config() (in module src.product)}
5479 \begin{fulllineitems}
5480 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.get_product_config}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{get\_product\_config}}}{\emph{config}, \emph{product\_name}, \emph{with\_install\_dir=True}}{}
5481 Get the specific configuration of a product from the global configuration
5482 \begin{quote}\begin{description}
5483 \item[{Parameters}] \leavevmode\begin{itemize}
5485 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The global configuration
5488 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_name}}) \textendash{} The name of the product
5491 \sphinxstyleliteralstrong{\sphinxupquote{boolean}} (\sphinxstyleliteralemphasis{\sphinxupquote{with\_install\_dir}}) \textendash{} If false, do not provide an install
5492 directory (at false only for internal use
5493 of the function check\_config\_exists)
5497 \item[{Returns}] \leavevmode
5498 the specific configuration of the product
5500 \item[{Return type}] \leavevmode
5501 {\hyperref[\detokenize{commands/apidoc/src:src.pyconf.Config}]{\sphinxcrossref{Config}}} (\autopageref*{\detokenize{commands/apidoc/src:src.pyconf.Config}})
5503 \end{description}\end{quote}
5507 \index{get\_product\_dependencies() (in module src.product)}
5509 \begin{fulllineitems}
5510 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.get_product_dependencies}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{get\_product\_dependencies}}}{\emph{config}, \emph{product\_info}}{}
5511 Get recursively the list of products that are
5512 in the product\_info dependencies
5513 \begin{quote}\begin{description}
5514 \item[{Parameters}] \leavevmode\begin{itemize}
5516 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The global configuration
5519 \sphinxstyleliteralstrong{\sphinxupquote{Config}} \textendash{} The configuration specific to
5524 \item[{Returns}] \leavevmode
5525 the list of products in dependence
5527 \item[{Return type}] \leavevmode
5530 \end{description}\end{quote}
5534 \index{get\_product\_section() (in module src.product)}
5536 \begin{fulllineitems}
5537 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.get_product_section}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{get\_product\_section}}}{\emph{config}, \emph{product\_name}, \emph{version}, \emph{section=None}}{}
5538 Get the product description from the configuration
5539 \begin{quote}\begin{description}
5540 \item[{Parameters}] \leavevmode\begin{itemize}
5542 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The global configuration
5545 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{section}}) \textendash{} The product name
5548 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The version of the product
5551 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The searched section (if not None, the section is
5556 \item[{Returns}] \leavevmode
5557 The product description
5559 \item[{Return type}] \leavevmode
5560 {\hyperref[\detokenize{commands/apidoc/src:src.pyconf.Config}]{\sphinxcrossref{Config}}} (\autopageref*{\detokenize{commands/apidoc/src:src.pyconf.Config}})
5562 \end{description}\end{quote}
5566 \index{get\_products\_infos() (in module src.product)}
5568 \begin{fulllineitems}
5569 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.get_products_infos}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{get\_products\_infos}}}{\emph{lproducts}, \emph{config}}{}
5570 Get the specific configuration of a list of products
5571 \begin{quote}\begin{description}
5572 \item[{Parameters}] \leavevmode\begin{itemize}
5574 \sphinxstyleliteralstrong{\sphinxupquote{List}} (\sphinxstyleliteralemphasis{\sphinxupquote{lproducts}}) \textendash{} The list of product names
5577 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The global configuration
5581 \item[{Returns}] \leavevmode
5583 (product name, specific configuration of the product)
5585 \item[{Return type}] \leavevmode
5586 {[}(str, {\hyperref[\detokenize{commands/apidoc/src:src.pyconf.Config}]{\sphinxcrossref{Config}}} (\autopageref*{\detokenize{commands/apidoc/src:src.pyconf.Config}})){]}
5588 \end{description}\end{quote}
5592 \index{product\_compiles() (in module src.product)}
5594 \begin{fulllineitems}
5595 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_compiles}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_compiles}}}{\emph{product\_info}}{}
5596 Know if a product compiles or not
5597 (some products do not have a compilation procedure)
5598 \begin{quote}\begin{description}
5599 \item[{Parameters}] \leavevmode
5600 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5603 \item[{Returns}] \leavevmode
5604 True if the product compiles, else False
5606 \item[{Return type}] \leavevmode
5609 \end{description}\end{quote}
5613 \index{product\_has\_env\_script() (in module src.product)}
5615 \begin{fulllineitems}
5616 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_has_env_script}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_has\_env\_script}}}{\emph{product\_info}}{}
5617 Know if a product has an environment script
5618 \begin{quote}\begin{description}
5619 \item[{Parameters}] \leavevmode
5620 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5623 \item[{Returns}] \leavevmode
5624 True if the product it has an environment script, else False
5626 \item[{Return type}] \leavevmode
5629 \end{description}\end{quote}
5633 \index{product\_has\_logo() (in module src.product)}
5635 \begin{fulllineitems}
5636 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_has_logo}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_has\_logo}}}{\emph{product\_info}}{}
5637 Know if a product has a logo (YACSGEN generate)
5638 \begin{quote}\begin{description}
5639 \item[{Parameters}] \leavevmode
5640 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5643 \item[{Returns}] \leavevmode
5644 The path of the logo if the product has a logo, else False
5646 \item[{Return type}] \leavevmode
5649 \end{description}\end{quote}
5653 \index{product\_has\_patches() (in module src.product)}
5655 \begin{fulllineitems}
5656 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_has_patches}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_has\_patches}}}{\emph{product\_info}}{}
5657 Know if a product has one or more patches
5658 \begin{quote}\begin{description}
5659 \item[{Parameters}] \leavevmode
5660 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5663 \item[{Returns}] \leavevmode
5664 True if the product has one or more patches
5666 \item[{Return type}] \leavevmode
5669 \end{description}\end{quote}
5673 \index{product\_has\_salome\_gui() (in module src.product)}
5675 \begin{fulllineitems}
5676 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_has_salome_gui}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_has\_salome\_gui}}}{\emph{product\_info}}{}
5677 Know if a product has a SALOME gui
5678 \begin{quote}\begin{description}
5679 \item[{Parameters}] \leavevmode
5680 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5683 \item[{Returns}] \leavevmode
5684 True if the product has a SALOME gui, else False
5686 \item[{Return type}] \leavevmode
5689 \end{description}\end{quote}
5693 \index{product\_has\_script() (in module src.product)}
5695 \begin{fulllineitems}
5696 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_has_script}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_has\_script}}}{\emph{product\_info}}{}
5697 Know if a product has a compilation script
5698 \begin{quote}\begin{description}
5699 \item[{Parameters}] \leavevmode
5700 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5703 \item[{Returns}] \leavevmode
5704 True if the product it has a compilation script, else False
5706 \item[{Return type}] \leavevmode
5709 \end{description}\end{quote}
5713 \index{product\_is\_autotools() (in module src.product)}
5715 \begin{fulllineitems}
5716 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_autotools}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_autotools}}}{\emph{product\_info}}{}
5717 Know if a product is compiled using the autotools
5718 \begin{quote}\begin{description}
5719 \item[{Parameters}] \leavevmode
5720 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5723 \item[{Returns}] \leavevmode
5724 True if the product is autotools, else False
5726 \item[{Return type}] \leavevmode
5729 \end{description}\end{quote}
5733 \index{product\_is\_cmake() (in module src.product)}
5735 \begin{fulllineitems}
5736 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_cmake}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_cmake}}}{\emph{product\_info}}{}
5737 Know if a product is compiled using the cmake
5738 \begin{quote}\begin{description}
5739 \item[{Parameters}] \leavevmode
5740 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5743 \item[{Returns}] \leavevmode
5744 True if the product is cmake, else False
5746 \item[{Return type}] \leavevmode
5749 \end{description}\end{quote}
5753 \index{product\_is\_cpp() (in module src.product)}
5755 \begin{fulllineitems}
5756 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_cpp}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_cpp}}}{\emph{product\_info}}{}
5757 Know if a product is cpp
5758 \begin{quote}\begin{description}
5759 \item[{Parameters}] \leavevmode
5760 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5763 \item[{Returns}] \leavevmode
5764 True if the product is a cpp, else False
5766 \item[{Return type}] \leavevmode
5769 \end{description}\end{quote}
5773 \index{product\_is\_debug() (in module src.product)}
5775 \begin{fulllineitems}
5776 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_debug}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_debug}}}{\emph{product\_info}}{}
5777 Know if a product is in debug mode
5778 \begin{quote}\begin{description}
5779 \item[{Parameters}] \leavevmode
5780 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5783 \item[{Returns}] \leavevmode
5784 True if the product is in debug mode, else False
5786 \item[{Return type}] \leavevmode
5789 \end{description}\end{quote}
5793 \index{product\_is\_dev() (in module src.product)}
5795 \begin{fulllineitems}
5796 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_dev}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_dev}}}{\emph{product\_info}}{}
5797 Know if a product is in dev mode
5798 \begin{quote}\begin{description}
5799 \item[{Parameters}] \leavevmode
5800 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5803 \item[{Returns}] \leavevmode
5804 True if the product is in dev mode, else False
5806 \item[{Return type}] \leavevmode
5809 \end{description}\end{quote}
5813 \index{product\_is\_fixed() (in module src.product)}
5815 \begin{fulllineitems}
5816 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_fixed}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_fixed}}}{\emph{product\_info}}{}
5817 Know if a product is fixed
5818 \begin{quote}\begin{description}
5819 \item[{Parameters}] \leavevmode
5820 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5823 \item[{Returns}] \leavevmode
5824 True if the product is fixed, else False
5826 \item[{Return type}] \leavevmode
5829 \end{description}\end{quote}
5833 \index{product\_is\_generated() (in module src.product)}
5835 \begin{fulllineitems}
5836 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_generated}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_generated}}}{\emph{product\_info}}{}
5837 Know if a product is generated (YACSGEN)
5838 \begin{quote}\begin{description}
5839 \item[{Parameters}] \leavevmode
5840 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5843 \item[{Returns}] \leavevmode
5844 True if the product is generated
5846 \item[{Return type}] \leavevmode
5849 \end{description}\end{quote}
5853 \index{product\_is\_mpi() (in module src.product)}
5855 \begin{fulllineitems}
5856 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_mpi}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_mpi}}}{\emph{product\_info}}{}
5857 Know if a product has openmpi in its dependencies
5858 \begin{quote}\begin{description}
5859 \item[{Parameters}] \leavevmode
5860 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5863 \item[{Returns}] \leavevmode
5864 True if the product has openmpi inits dependencies
5866 \item[{Return type}] \leavevmode
5869 \end{description}\end{quote}
5873 \index{product\_is\_native() (in module src.product)}
5875 \begin{fulllineitems}
5876 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_native}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_native}}}{\emph{product\_info}}{}
5877 Know if a product is native
5878 \begin{quote}\begin{description}
5879 \item[{Parameters}] \leavevmode
5880 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5883 \item[{Returns}] \leavevmode
5884 True if the product is native, else False
5886 \item[{Return type}] \leavevmode
5889 \end{description}\end{quote}
5893 \index{product\_is\_salome() (in module src.product)}
5895 \begin{fulllineitems}
5896 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_salome}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_salome}}}{\emph{product\_info}}{}
5897 Know if a product is a SALOME module
5898 \begin{quote}\begin{description}
5899 \item[{Parameters}] \leavevmode
5900 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5903 \item[{Returns}] \leavevmode
5904 True if the product is a SALOME module, else False
5906 \item[{Return type}] \leavevmode
5909 \end{description}\end{quote}
5913 \index{product\_is\_smesh\_plugin() (in module src.product)}
5915 \begin{fulllineitems}
5916 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_smesh_plugin}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_smesh\_plugin}}}{\emph{product\_info}}{}
5917 Know if a product is a SMESH plugin
5918 \begin{quote}\begin{description}
5919 \item[{Parameters}] \leavevmode
5920 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5923 \item[{Returns}] \leavevmode
5924 True if the product is a SMESH plugin, else False
5926 \item[{Return type}] \leavevmode
5929 \end{description}\end{quote}
5933 \index{product\_is\_vcs() (in module src.product)}
5935 \begin{fulllineitems}
5936 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_vcs}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_vcs}}}{\emph{product\_info}}{}
5937 Know if a product is download using git, svn or cvs (not archive)
5938 \begin{quote}\begin{description}
5939 \item[{Parameters}] \leavevmode
5940 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5943 \item[{Returns}] \leavevmode
5944 True if the product is vcs, else False
5946 \item[{Return type}] \leavevmode
5949 \end{description}\end{quote}
5953 \index{product\_is\_verbose() (in module src.product)}
5955 \begin{fulllineitems}
5956 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_verbose}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_verbose}}}{\emph{product\_info}}{}
5957 Know if a product is in verbose mode
5958 \begin{quote}\begin{description}
5959 \item[{Parameters}] \leavevmode
5960 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5963 \item[{Returns}] \leavevmode
5964 True if the product is in verbose mode, else False
5966 \item[{Return type}] \leavevmode
5969 \end{description}\end{quote}
5975 \subsubsection{src.pyconf module}
5976 \label{\detokenize{commands/apidoc/src:src-pyconf-module}}\label{\detokenize{commands/apidoc/src:module-src.pyconf}}\index{src.pyconf (module)}
5977 This is a configuration module for Python.
5979 This module should work under Python versions \textgreater{}= 2.2, and cannot be used with
5980 earlier versions since it uses new-style classes.
5982 Development and testing has only been carried out (so far) on Python 2.3.4 and
5983 Python 2.4.2. See the test module (test\_config.py) included in the
5984 U\{distribution\textless{}\sphinxurl{http://www.red-dove.com/python\_config}.html\textbar{}\_blank\textgreater{}\} (follow the
5987 A simple example - with the example configuration file:
5989 \fvset{hllines={, ,}}%
5990 \begin{sphinxVerbatim}[commandchars=\\\{\}]
5994 stream : {}`sys.stderr{}`
5995 message: \PYGZsq{}Welcome\PYGZsq{}
5996 name: \PYGZsq{}Harry\PYGZsq{}
5999 stream : {}`sys.stdout{}`
6000 message: \PYGZsq{}Welkom\PYGZsq{}
6001 name: \PYGZsq{}Ruud\PYGZsq{}
6004 stream : \PYGZdl{}messages[0].stream
6005 message: \PYGZsq{}Bienvenue\PYGZsq{}
6009 \end{sphinxVerbatim}
6011 a program to read the configuration would be:
6013 \fvset{hllines={, ,}}%
6014 \begin{sphinxVerbatim}[commandchars=\\\{\}]
6015 \PYG{k+kn}{from} \PYG{n+nn}{config} \PYG{k}{import} \PYG{n}{Config}
6017 \PYG{n}{f} \PYG{o}{=} \PYG{n}{file}\PYG{p}{(}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{simple.cfg}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{)}
6018 \PYG{n}{cfg} \PYG{o}{=} \PYG{n}{Config}\PYG{p}{(}\PYG{n}{f}\PYG{p}{)}
6019 \PYG{k}{for} \PYG{n}{m} \PYG{o+ow}{in} \PYG{n}{cfg}\PYG{o}{.}\PYG{n}{messages}\PYG{p}{:}
6020 \PYG{n}{s} \PYG{o}{=} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+si}{\PYGZpc{}s}\PYG{l+s+s1}{, }\PYG{l+s+si}{\PYGZpc{}s}\PYG{l+s+s1}{\PYGZsq{}} \PYG{o}{\PYGZpc{}} \PYG{p}{(}\PYG{n}{m}\PYG{o}{.}\PYG{n}{message}\PYG{p}{,} \PYG{n}{m}\PYG{o}{.}\PYG{n}{name}\PYG{p}{)}
6021 \PYG{k}{try}\PYG{p}{:}
6022 \PYG{n+nb}{print} \PYG{o}{\PYGZgt{}\PYGZgt{}} \PYG{n}{m}\PYG{o}{.}\PYG{n}{stream}\PYG{p}{,} \PYG{n}{s}
6023 \PYG{k}{except} \PYG{n+ne}{IOError}\PYG{p}{,} \PYG{n}{e}\PYG{p}{:}
6024 \PYG{n+nb}{print} \PYG{n}{e}
6025 \end{sphinxVerbatim}
6027 which, when run, would yield the console output:
6029 \fvset{hllines={, ,}}%
6030 \begin{sphinxVerbatim}[commandchars=\\\{\}]
6031 \PYG{n}{Welcome}\PYG{p}{,} \PYG{n}{Harry}
6032 \PYG{n}{Welkom}\PYG{p}{,} \PYG{n}{Ruud}
6033 \PYG{n}{Bienvenue}\PYG{p}{,} \PYG{n}{Yves}
6034 \end{sphinxVerbatim}
6036 See U\{this tutorial\textless{}\sphinxurl{http://www.red-dove.com/python\_config}.html\textbar{}\_blank\textgreater{}\} for more
6039 \#modified for salomeTools
6042 @author: Vinay Sajip
6044 @copyright: Copyright (C) 2004-2007 Vinay Sajip. All Rights Reserved.
6046 @var streamOpener: The default stream opener. This is a factory function which
6047 takes a string (e.g. filename) and returns a stream suitable for reading. If
6048 unable to open the stream, an IOError exception should be thrown.
6050 The default value of this variable is L\{defaultStreamOpener\}. For an example
6051 of how it’s used, see test\_config.py (search for streamOpener).
6052 \index{Config (class in src.pyconf)}
6054 \begin{fulllineitems}
6055 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Config}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{Config}}}{\emph{streamOrFile=None}, \emph{parent=None}, \emph{PWD=None}}{}
6056 Bases: {\hyperref[\detokenize{commands/apidoc/src:src.pyconf.Mapping}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.pyconf.Mapping}}}}} (\autopageref*{\detokenize{commands/apidoc/src:src.pyconf.Mapping}})
6058 This class represents a configuration, and is the only one which clients
6059 need to interface to, under normal circumstances.
6060 \index{Config.Namespace (class in src.pyconf)}
6062 \begin{fulllineitems}
6063 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Config.Namespace}}\pysigline{\sphinxbfcode{\sphinxupquote{class }}\sphinxbfcode{\sphinxupquote{Namespace}}}
6064 Bases: \sphinxcode{\sphinxupquote{object}}
6066 This internal class is used for implementing default namespaces.
6068 An instance acts as a namespace.
6072 \index{addNamespace() (src.pyconf.Config method)}
6074 \begin{fulllineitems}
6075 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Config.addNamespace}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{addNamespace}}}{\emph{ns}, \emph{name=None}}{}
6076 Add a namespace to this configuration which can be used to evaluate
6077 (resolve) dotted-identifier expressions.
6078 @param ns: The namespace to be added.
6079 @type ns: A module or other namespace suitable for passing as an
6081 @param name: A name for the namespace, which, if specified, provides
6082 an additional level of indirection.
6087 \index{getByPath() (src.pyconf.Config method)}
6089 \begin{fulllineitems}
6090 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Config.getByPath}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{getByPath}}}{\emph{path}}{}
6091 Obtain a value in the configuration via its path.
6092 @param path: The path of the required value
6094 @return the value at the specified path.
6096 @raise ConfigError: If the path is invalid
6100 \index{load() (src.pyconf.Config method)}
6102 \begin{fulllineitems}
6103 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Config.load}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{load}}}{\emph{stream}}{}
6104 Load the configuration from the specified stream. Multiple streams can
6105 be used to populate the same instance, as long as there are no
6106 clashing keys. The stream is closed.
6107 @param stream: A stream from which the configuration is read.
6108 @type stream: A read-only stream (file-like object).
6109 @raise ConfigError: if keys in the loaded configuration clash with
6111 @raise ConfigFormatError: if there is a syntax error in the stream.
6115 \index{removeNamespace() (src.pyconf.Config method)}
6117 \begin{fulllineitems}
6118 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Config.removeNamespace}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{removeNamespace}}}{\emph{ns}, \emph{name=None}}{}
6119 Remove a namespace added with L\{addNamespace\}.
6120 @param ns: The namespace to be removed.
6121 @param name: The name which was specified when L\{addNamespace\} was
6132 \begin{fulllineitems}
6133 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigError}}\pysigline{\sphinxbfcode{\sphinxupquote{exception }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{ConfigError}}}
6134 Bases: \sphinxcode{\sphinxupquote{exceptions.Exception}}
6136 This is the base class of exceptions raised by this module.
6140 \index{ConfigFormatError}
6142 \begin{fulllineitems}
6143 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigFormatError}}\pysigline{\sphinxbfcode{\sphinxupquote{exception }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{ConfigFormatError}}}
6144 Bases: {\hyperref[\detokenize{commands/apidoc/src:src.pyconf.ConfigError}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.pyconf.ConfigError}}}}} (\autopageref*{\detokenize{commands/apidoc/src:src.pyconf.ConfigError}})
6146 This is the base class of exceptions raised due to syntax errors in
6151 \index{ConfigInputStream (class in src.pyconf)}
6153 \begin{fulllineitems}
6154 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigInputStream}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{ConfigInputStream}}}{\emph{stream}}{}
6155 Bases: \sphinxcode{\sphinxupquote{object}}
6157 An input stream which can read either ANSI files with default encoding
6158 or Unicode files with BOMs.
6160 Handles UTF-8, UTF-16LE, UTF-16BE. Could handle UTF-32 if Python had
6162 \index{close() (src.pyconf.ConfigInputStream method)}
6164 \begin{fulllineitems}
6165 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigInputStream.close}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{close}}}{}{}
6168 \index{read() (src.pyconf.ConfigInputStream method)}
6170 \begin{fulllineitems}
6171 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigInputStream.read}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{read}}}{\emph{size}}{}
6174 \index{readline() (src.pyconf.ConfigInputStream method)}
6176 \begin{fulllineitems}
6177 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigInputStream.readline}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{readline}}}{}{}
6183 \index{ConfigList (class in src.pyconf)}
6185 \begin{fulllineitems}
6186 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigList}}\pysigline{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{ConfigList}}}
6187 Bases: \sphinxcode{\sphinxupquote{list}}
6189 This class implements an ordered list of configurations and allows you
6190 to try getting the configuration from each entry in turn, returning
6191 the first successfully obtained value.
6192 \index{getByPath() (src.pyconf.ConfigList method)}
6194 \begin{fulllineitems}
6195 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigList.getByPath}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{getByPath}}}{\emph{path}}{}
6196 Obtain a value from the first configuration in the list which defines
6199 @param path: The path of the value to retrieve.
6201 @return: The value from the earliest configuration in the list which
6204 @raise ConfigError: If no configuration in the list has an entry with
6212 \index{ConfigMerger (class in src.pyconf)}
6214 \begin{fulllineitems}
6215 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigMerger}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{ConfigMerger}}}{\emph{resolver=\textless{}function defaultMergeResolve\textgreater{}}}{}
6216 Bases: \sphinxcode{\sphinxupquote{object}}
6218 This class is used for merging two configurations. If a key exists in the
6219 merge operand but not the merge target, then the entry is copied from the
6220 merge operand to the merge target. If a key exists in both configurations,
6221 then a resolver (a callable) is called to decide how to handle the
6223 \index{handleMismatch() (src.pyconf.ConfigMerger method)}
6225 \begin{fulllineitems}
6226 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigMerger.handleMismatch}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{handleMismatch}}}{\emph{obj1}, \emph{obj2}}{}
6227 Handle a mismatch between two objects.
6229 @param obj1: The object to merge into.
6231 @param obj2: The object to merge.
6236 \index{merge() (src.pyconf.ConfigMerger method)}
6238 \begin{fulllineitems}
6239 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigMerger.merge}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{merge}}}{\emph{merged}, \emph{mergee}}{}
6240 Merge two configurations. The second configuration is unchanged,
6241 and the first is changed to reflect the results of the merge.
6243 @param merged: The configuration to merge into.
6244 @type merged: L\{Config\}.
6245 @param mergee: The configuration to merge.
6246 @type mergee: L\{Config\}.
6250 \index{mergeMapping() (src.pyconf.ConfigMerger method)}
6252 \begin{fulllineitems}
6253 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigMerger.mergeMapping}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{mergeMapping}}}{\emph{map1}, \emph{map2}}{}
6254 Merge two mappings recursively. The second mapping is unchanged,
6255 and the first is changed to reflect the results of the merge.
6257 @param map1: The mapping to merge into.
6258 @type map1: L\{Mapping\}.
6259 @param map2: The mapping to merge.
6260 @type map2: L\{Mapping\}.
6264 \index{mergeSequence() (src.pyconf.ConfigMerger method)}
6266 \begin{fulllineitems}
6267 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigMerger.mergeSequence}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{mergeSequence}}}{\emph{seq1}, \emph{seq2}}{}
6268 Merge two sequences. The second sequence is unchanged,
6269 and the first is changed to have the elements of the second
6272 @param seq1: The sequence to merge into.
6273 @type seq1: L\{Sequence\}.
6274 @param seq2: The sequence to merge.
6275 @type seq2: L\{Sequence\}.
6279 \index{overwriteKeys() (src.pyconf.ConfigMerger method)}
6281 \begin{fulllineitems}
6282 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigMerger.overwriteKeys}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{overwriteKeys}}}{\emph{map1}, \emph{seq2}}{}
6283 Renint variables. The second mapping is unchanged,
6284 and the first is changed depending the keys of the second mapping.
6285 @param map1: The mapping to reinit keys into.
6286 @type map1: L\{Mapping\}.
6287 @param map2: The mapping container reinit information.
6288 @type map2: L\{Mapping\}.
6295 \index{ConfigOutputStream (class in src.pyconf)}
6297 \begin{fulllineitems}
6298 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigOutputStream}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{ConfigOutputStream}}}{\emph{stream}, \emph{encoding=None}}{}
6299 Bases: \sphinxcode{\sphinxupquote{object}}
6301 An output stream which can write either ANSI files with default encoding
6302 or Unicode files with BOMs.
6304 Handles UTF-8, UTF-16LE, UTF-16BE. Could handle UTF-32 if Python had
6306 \index{close() (src.pyconf.ConfigOutputStream method)}
6308 \begin{fulllineitems}
6309 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigOutputStream.close}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{close}}}{}{}
6312 \index{flush() (src.pyconf.ConfigOutputStream method)}
6314 \begin{fulllineitems}
6315 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigOutputStream.flush}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{flush}}}{}{}
6318 \index{write() (src.pyconf.ConfigOutputStream method)}
6320 \begin{fulllineitems}
6321 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigOutputStream.write}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{write}}}{\emph{data}}{}
6327 \index{ConfigReader (class in src.pyconf)}
6329 \begin{fulllineitems}
6330 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{ConfigReader}}}{\emph{config}}{}
6331 Bases: \sphinxcode{\sphinxupquote{object}}
6333 This internal class implements a parser for configurations.
6334 \index{getChar() (src.pyconf.ConfigReader method)}
6336 \begin{fulllineitems}
6337 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.getChar}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{getChar}}}{}{}
6338 Get the next char from the stream. Update line and column numbers
6341 @return: The next character from the stream.
6346 \index{getToken() (src.pyconf.ConfigReader method)}
6348 \begin{fulllineitems}
6349 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.getToken}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{getToken}}}{}{}
6350 Get a token from the stream. String values are returned in a form
6351 where you need to eval() the returned value to get the actual
6352 string. The return value is (token\_type, token\_value).
6354 Multiline string tokenizing is thanks to David Janes (BlogMatrix)
6356 @return: The next token.
6357 @rtype: A token tuple.
6361 \index{load() (src.pyconf.ConfigReader method)}
6363 \begin{fulllineitems}
6364 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.load}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{load}}}{\emph{stream}, \emph{parent=None}, \emph{suffix=None}}{}
6365 Load the configuration from the specified stream.
6367 @param stream: A stream from which to load the configuration.
6368 @type stream: A stream (file-like object).
6369 @param parent: The parent of the configuration (to which this reader
6370 belongs) in the hierarchy. Specified when the configuration is
6371 included in another one.
6372 @type parent: A L\{Container\} instance.
6373 @param suffix: The suffix of this configuration in the parent
6374 configuration. Should be specified whenever the parent is not None.
6375 @raise ConfigError: If parent is specified but suffix is not.
6376 @raise ConfigFormatError: If there are syntax errors in the stream.
6380 \index{location() (src.pyconf.ConfigReader method)}
6382 \begin{fulllineitems}
6383 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.location}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{location}}}{}{}
6384 Return the current location (filename, line, column) in the stream
6387 Used when printing error messages,
6389 @return: A string representing a location in the stream being read.
6394 \index{match() (src.pyconf.ConfigReader method)}
6396 \begin{fulllineitems}
6397 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.match}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{match}}}{\emph{t}}{}
6398 Ensure that the current token type matches the specified value, and
6399 advance to the next token.
6401 @param t: The token type to match.
6402 @type t: A valid token type.
6403 @return: The token which was last read from the stream before this
6405 @rtype: a token tuple - see L\{getToken\}.
6406 @raise ConfigFormatError: If the token does not match what’s expected.
6410 \index{parseFactor() (src.pyconf.ConfigReader method)}
6412 \begin{fulllineitems}
6413 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseFactor}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseFactor}}}{}{}
6414 Parse a factor in an multiplicative expression (a * b, a / b, a \% b)
6416 @return: the parsed factor
6418 @raise ConfigFormatError: if a syntax error is found.
6422 \index{parseKeyValuePair() (src.pyconf.ConfigReader method)}
6424 \begin{fulllineitems}
6425 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseKeyValuePair}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseKeyValuePair}}}{\emph{parent}}{}
6426 Parse a key-value pair, and add it to the provided L\{Mapping\}.
6428 @param parent: The mapping to add entries to.
6429 @type parent: A L\{Mapping\} instance.
6430 @raise ConfigFormatError: if a syntax error is found.
6434 \index{parseMapping() (src.pyconf.ConfigReader method)}
6436 \begin{fulllineitems}
6437 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseMapping}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseMapping}}}{\emph{parent}, \emph{suffix}}{}
6440 @param parent: The container to which the mapping will be added.
6441 @type parent: A L\{Container\} instance.
6442 @param suffix: The suffix for the value.
6444 @return: a L\{Mapping\} instance representing the mapping.
6445 @rtype: L\{Mapping\}
6446 @raise ConfigFormatError: if a syntax error is found.
6450 \index{parseMappingBody() (src.pyconf.ConfigReader method)}
6452 \begin{fulllineitems}
6453 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseMappingBody}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseMappingBody}}}{\emph{parent}}{}
6454 Parse the internals of a mapping, and add entries to the provided
6457 @param parent: The mapping to add entries to.
6458 @type parent: A L\{Mapping\} instance.
6462 \index{parseReference() (src.pyconf.ConfigReader method)}
6464 \begin{fulllineitems}
6465 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseReference}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseReference}}}{\emph{type}}{}
6468 @return: the parsed reference
6469 @rtype: L\{Reference\}
6470 @raise ConfigFormatError: if a syntax error is found.
6474 \index{parseScalar() (src.pyconf.ConfigReader method)}
6476 \begin{fulllineitems}
6477 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseScalar}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseScalar}}}{}{}
6478 Parse a scalar - a terminal value such as a string or number, or
6479 an L\{Expression\} or L\{Reference\}.
6481 @return: the parsed scalar
6483 @raise ConfigFormatError: if a syntax error is found.
6487 \index{parseSequence() (src.pyconf.ConfigReader method)}
6489 \begin{fulllineitems}
6490 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseSequence}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseSequence}}}{\emph{parent}, \emph{suffix}}{}
6493 @param parent: The container to which the sequence will be added.
6494 @type parent: A L\{Container\} instance.
6495 @param suffix: The suffix for the value.
6497 @return: a L\{Sequence\} instance representing the sequence.
6498 @rtype: L\{Sequence\}
6499 @raise ConfigFormatError: if a syntax error is found.
6503 \index{parseSuffix() (src.pyconf.ConfigReader method)}
6505 \begin{fulllineitems}
6506 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseSuffix}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseSuffix}}}{\emph{ref}}{}
6507 Parse a reference suffix.
6509 @param ref: The reference of which this suffix is a part.
6510 @type ref: L\{Reference\}.
6511 @raise ConfigFormatError: if a syntax error is found.
6515 \index{parseTerm() (src.pyconf.ConfigReader method)}
6517 \begin{fulllineitems}
6518 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseTerm}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseTerm}}}{}{}
6519 Parse a term in an additive expression (a + b, a - b)
6521 @return: the parsed term
6523 @raise ConfigFormatError: if a syntax error is found.
6527 \index{parseValue() (src.pyconf.ConfigReader method)}
6529 \begin{fulllineitems}
6530 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseValue}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseValue}}}{\emph{parent}, \emph{suffix}}{}
6533 @param parent: The container to which the value will be added.
6534 @type parent: A L\{Container\} instance.
6535 @param suffix: The suffix for the value.
6539 @raise ConfigFormatError: if a syntax error is found.
6543 \index{setStream() (src.pyconf.ConfigReader method)}
6545 \begin{fulllineitems}
6546 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.setStream}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{setStream}}}{\emph{stream}}{}
6547 Set the stream to the specified value, and prepare to read from it.
6549 @param stream: A stream from which to load the configuration.
6550 @type stream: A stream (file-like object).
6557 \index{ConfigResolutionError}
6559 \begin{fulllineitems}
6560 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigResolutionError}}\pysigline{\sphinxbfcode{\sphinxupquote{exception }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{ConfigResolutionError}}}
6561 Bases: {\hyperref[\detokenize{commands/apidoc/src:src.pyconf.ConfigError}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.pyconf.ConfigError}}}}} (\autopageref*{\detokenize{commands/apidoc/src:src.pyconf.ConfigError}})
6563 This is the base class of exceptions raised due to semantic errors in
6568 \index{Container (class in src.pyconf)}
6570 \begin{fulllineitems}
6571 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Container}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{Container}}}{\emph{parent}}{}
6572 Bases: \sphinxcode{\sphinxupquote{object}}
6574 This internal class is the base class for mappings and sequences.
6576 @ivar path: A string which describes how to get
6577 to this instance from the root of the hierarchy.
6581 \fvset{hllines={, ,}}%
6582 \begin{sphinxVerbatim}[commandchars=\\\{\}]
6583 \PYG{n}{a}\PYG{o}{.}\PYG{n}{list}\PYG{o}{.}\PYG{n}{of}\PYG{p}{[}\PYG{l+m+mi}{1}\PYG{p}{]}\PYG{o}{.}\PYG{o+ow}{or}\PYG{p}{[}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{more}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{]}\PYG{o}{.}\PYG{n}{elements}
6584 \end{sphinxVerbatim}
6585 \index{evaluate() (src.pyconf.Container method)}
6587 \begin{fulllineitems}
6588 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Container.evaluate}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{evaluate}}}{\emph{item}}{}
6589 Evaluate items which are instances of L\{Reference\} or L\{Expression\}.
6591 L\{Reference\} instances are evaluated using L\{Reference.resolve\},
6592 and L\{Expression\} instances are evaluated using
6593 L\{Expression.evaluate\}.
6595 @param item: The item to be evaluated.
6597 @return: If the item is an instance of L\{Reference\} or L\{Expression\},
6598 the evaluated value is returned, otherwise the item is returned
6603 \index{setPath() (src.pyconf.Container method)}
6605 \begin{fulllineitems}
6606 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Container.setPath}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{setPath}}}{\emph{path}}{}
6607 Set the path for this instance.
6608 @param path: The path - a string which describes how to get
6609 to this instance from the root of the hierarchy.
6614 \index{writeToStream() (src.pyconf.Container method)}
6616 \begin{fulllineitems}
6617 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Container.writeToStream}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{writeToStream}}}{\emph{stream}, \emph{indent}, \emph{container}}{}
6618 Write this instance to a stream at the specified indentation level.
6620 Should be redefined in subclasses.
6622 @param stream: The stream to write to
6623 @type stream: A writable stream (file-like object)
6624 @param indent: The indentation level
6626 @param container: The container of this instance
6627 @type container: L\{Container\}
6628 @raise NotImplementedError: If a subclass does not override this
6632 \index{writeValue() (src.pyconf.Container method)}
6634 \begin{fulllineitems}
6635 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Container.writeValue}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{writeValue}}}{\emph{value}, \emph{stream}, \emph{indent}}{}
6641 \index{Expression (class in src.pyconf)}
6643 \begin{fulllineitems}
6644 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Expression}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{Expression}}}{\emph{op}, \emph{lhs}, \emph{rhs}}{}
6645 Bases: \sphinxcode{\sphinxupquote{object}}
6647 This internal class implements a value which is obtained by evaluating an expression.
6648 \index{evaluate() (src.pyconf.Expression method)}
6650 \begin{fulllineitems}
6651 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Expression.evaluate}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{evaluate}}}{\emph{container}}{}
6652 Evaluate this instance in the context of a container.
6654 @param container: The container to evaluate in from.
6655 @type container: L\{Container\}
6656 @return: The evaluated value.
6658 @raise ConfigResolutionError: If evaluation fails.
6659 @raise ZeroDivideError: If division by zero occurs.
6660 @raise TypeError: If the operation is invalid, e.g.
6661 subtracting one string from another.
6668 \index{Mapping (class in src.pyconf)}
6670 \begin{fulllineitems}
6671 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Mapping}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{Mapping}}}{\emph{parent=None}}{}
6672 Bases: {\hyperref[\detokenize{commands/apidoc/src:src.pyconf.Container}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.pyconf.Container}}}}} (\autopageref*{\detokenize{commands/apidoc/src:src.pyconf.Container}})
6674 This internal class implements key-value mappings in configurations.
6675 \index{addMapping() (src.pyconf.Mapping method)}
6677 \begin{fulllineitems}
6678 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Mapping.addMapping}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{addMapping}}}{\emph{key}, \emph{value}, \emph{comment}, \emph{setting=False}}{}
6679 Add a key-value mapping with a comment.
6681 @param key: The key for the mapping.
6683 @param value: The value for the mapping.
6685 @param comment: The comment for the key (can be None).
6687 @param setting: If True, ignore clashes. This is set
6688 to true when called from L\{\_\_setattr\_\_\}.
6689 @raise ConfigFormatError: If an existing key is seen
6690 again and setting is False.
6694 \index{get() (src.pyconf.Mapping method)}
6696 \begin{fulllineitems}
6697 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Mapping.get}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get}}}{\emph{key}, \emph{default=None}}{}
6698 Allows a dictionary-style get operation.
6702 \index{iteritems() (src.pyconf.Mapping method)}
6704 \begin{fulllineitems}
6705 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Mapping.iteritems}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{iteritems}}}{}{}
6708 \index{iterkeys() (src.pyconf.Mapping method)}
6710 \begin{fulllineitems}
6711 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Mapping.iterkeys}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{iterkeys}}}{}{}
6714 \index{keys() (src.pyconf.Mapping method)}
6716 \begin{fulllineitems}
6717 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Mapping.keys}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{keys}}}{}{}
6718 Return the keys in a similar way to a dictionary.
6722 \index{writeToStream() (src.pyconf.Mapping method)}
6724 \begin{fulllineitems}
6725 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Mapping.writeToStream}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{writeToStream}}}{\emph{stream}, \emph{indent}, \emph{container}}{}
6726 Write this instance to a stream at the specified indentation level.
6728 Should be redefined in subclasses.
6730 @param stream: The stream to write to
6731 @type stream: A writable stream (file-like object)
6732 @param indent: The indentation level
6734 @param container: The container of this instance
6735 @type container: L\{Container\}
6742 \index{Reference (class in src.pyconf)}
6744 \begin{fulllineitems}
6745 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Reference}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{Reference}}}{\emph{config}, \emph{type}, \emph{ident}}{}
6746 Bases: \sphinxcode{\sphinxupquote{object}}
6748 This internal class implements a value which is a reference to another value.
6749 \index{addElement() (src.pyconf.Reference method)}
6751 \begin{fulllineitems}
6752 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Reference.addElement}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{addElement}}}{\emph{type}, \emph{ident}}{}
6753 Add an element to the reference.
6755 @param type: The type of reference.
6756 @type type: BACKTICK or DOLLAR
6757 @param ident: The identifier which continues the reference.
6762 \index{findConfig() (src.pyconf.Reference method)}
6764 \begin{fulllineitems}
6765 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Reference.findConfig}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{findConfig}}}{\emph{container}}{}
6766 Find the closest enclosing configuration to the specified container.
6768 @param container: The container to start from.
6769 @type container: L\{Container\}
6770 @return: The closest enclosing configuration, or None.
6775 \index{resolve() (src.pyconf.Reference method)}
6777 \begin{fulllineitems}
6778 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Reference.resolve}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{resolve}}}{\emph{container}}{}
6779 Resolve this instance in the context of a container.
6781 @param container: The container to resolve from.
6782 @type container: L\{Container\}
6783 @return: The resolved value.
6785 @raise ConfigResolutionError: If resolution fails.
6792 \index{Sequence (class in src.pyconf)}
6794 \begin{fulllineitems}
6795 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Sequence}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{Sequence}}}{\emph{parent=None}}{}
6796 Bases: {\hyperref[\detokenize{commands/apidoc/src:src.pyconf.Container}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.pyconf.Container}}}}} (\autopageref*{\detokenize{commands/apidoc/src:src.pyconf.Container}})
6798 This internal class implements a value which is a sequence of other values.
6799 \index{Sequence.SeqIter (class in src.pyconf)}
6801 \begin{fulllineitems}
6802 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Sequence.SeqIter}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxbfcode{\sphinxupquote{SeqIter}}}{\emph{seq}}{}
6803 Bases: \sphinxcode{\sphinxupquote{object}}
6805 This internal class implements an iterator for a L\{Sequence\} instance.
6806 \index{next() (src.pyconf.Sequence.SeqIter method)}
6808 \begin{fulllineitems}
6809 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Sequence.SeqIter.next}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{next}}}{}{}
6815 \index{append() (src.pyconf.Sequence method)}
6817 \begin{fulllineitems}
6818 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Sequence.append}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append}}}{\emph{item}, \emph{comment}}{}
6819 Add an item to the sequence.
6821 @param item: The item to add.
6823 @param comment: A comment for the item.
6828 \index{writeToStream() (src.pyconf.Sequence method)}
6830 \begin{fulllineitems}
6831 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Sequence.writeToStream}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{writeToStream}}}{\emph{stream}, \emph{indent}, \emph{container}}{}
6832 Write this instance to a stream at the specified indentation level.
6834 Should be redefined in subclasses.
6836 @param stream: The stream to write to
6837 @type stream: A writable stream (file-like object)
6838 @param indent: The indentation level
6840 @param container: The container of this instance
6841 @type container: L\{Container\}
6848 \index{deepCopyMapping() (in module src.pyconf)}
6850 \begin{fulllineitems}
6851 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.deepCopyMapping}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{deepCopyMapping}}}{\emph{inMapping}}{}
6854 \index{defaultMergeResolve() (in module src.pyconf)}
6856 \begin{fulllineitems}
6857 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.defaultMergeResolve}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{defaultMergeResolve}}}{\emph{map1}, \emph{map2}, \emph{key}}{}
6858 A default resolver for merge conflicts.
6859 Returns a string indicating what action to take to resolve the conflict.
6861 @param map1: The map being merged into.
6862 @type map1: L\{Mapping\}.
6863 @param map2: The map being used as the merge operand.
6864 @type map2: L\{Mapping\}.
6865 @param key: The key in map2 (which also exists in map1).
6868 \item[{@return: One of “merge”, “append”, “mismatch” or “overwrite”}] \leavevmode
6869 indicating what action should be taken. This should
6870 be appropriate to the objects being merged - e.g.
6871 there is no point returning “merge” if the two objects
6872 are instances of L\{Sequence\}.
6880 \index{defaultStreamOpener() (in module src.pyconf)}
6882 \begin{fulllineitems}
6883 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.defaultStreamOpener}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{defaultStreamOpener}}}{\emph{name}}{}
6884 This function returns a read-only stream, given its name. The name passed
6885 in should correspond to an existing stream, otherwise an exception will be
6888 This is the default value of L\{streamOpener\}; assign your own callable to
6889 streamOpener to return streams based on names. For example, you could use
6892 @param name: The name of a stream, most commonly a file name.
6894 @return: A stream with the specified name.
6895 @rtype: A read-only stream (file-like object)
6899 \index{isWord() (in module src.pyconf)}
6901 \begin{fulllineitems}
6902 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.isWord}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{isWord}}}{\emph{s}}{}
6903 See if a passed-in value is an identifier. If the value passed in is not a
6904 string, False is returned. An identifier consists of alphanumerics or
6905 underscore characters.
6909 \fvset{hllines={, ,}}%
6910 \begin{sphinxVerbatim}[commandchars=\\\{\}]
6911 \PYG{n}{isWord}\PYG{p}{(}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{a word}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{)} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZgt{}}\PYG{k+kc}{False}
6912 \PYG{n}{isWord}\PYG{p}{(}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{award}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{)} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZgt{}} \PYG{k+kc}{True}
6913 \PYG{n}{isWord}\PYG{p}{(}\PYG{l+m+mi}{9}\PYG{p}{)} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZgt{}} \PYG{k+kc}{False}
6914 \PYG{n}{isWord}\PYG{p}{(}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{a\PYGZus{}b\PYGZus{}c\PYGZus{}}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{)} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZgt{}}\PYG{k+kc}{True}
6915 \end{sphinxVerbatim}
6917 @note: isWord(‘9abc’) will return True - not exactly correct, but adequate
6918 for the way it’s used here.
6920 @param s: The name to be tested
6922 @return: True if a word, else False
6927 \index{makePath() (in module src.pyconf)}
6929 \begin{fulllineitems}
6930 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.makePath}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{makePath}}}{\emph{prefix}, \emph{suffix}}{}
6931 Make a path from a prefix and suffix.
6934 makePath(‘’, ‘suffix’) -\textgreater{} ‘suffix’
6935 makePath(‘prefix’, ‘suffix’) -\textgreater{} ‘prefix.suffix’
6936 makePath(‘prefix’, ‘{[}1{]}’) -\textgreater{} ‘prefix{[}1{]}’
6938 @param prefix: The prefix to use. If it evaluates as false, the suffix is returned.
6940 @param suffix: The suffix to use. It is either an identifier or an index in brackets.
6942 @return: The path concatenation of prefix and suffix, with adot if the suffix is not a bracketed index.
6947 \index{overwriteMergeResolve() (in module src.pyconf)}
6949 \begin{fulllineitems}
6950 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.overwriteMergeResolve}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{overwriteMergeResolve}}}{\emph{map1}, \emph{map2}, \emph{key}}{}
6951 An overwriting resolver for merge conflicts. Calls L\{defaultMergeResolve\},
6952 but where a “mismatch” is detected, returns “overwrite” instead.
6954 @param map1: The map being merged into.
6955 @type map1: L\{Mapping\}.
6956 @param map2: The map being used as the merge operand.
6957 @type map2: L\{Mapping\}.
6958 @param key: The key in map2 (which also exists in map1).
6965 \subsubsection{src.system module}
6966 \label{\detokenize{commands/apidoc/src:src-system-module}}\label{\detokenize{commands/apidoc/src:module-src.system}}\index{src.system (module)}
6967 In this file : all functions that do a system call,
6968 like open a browser or an editor, or call a git command
6969 \index{archive\_extract() (in module src.system)}
6971 \begin{fulllineitems}
6972 \phantomsection\label{\detokenize{commands/apidoc/src:src.system.archive_extract}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.system.}}\sphinxbfcode{\sphinxupquote{archive\_extract}}}{\emph{from\_what}, \emph{where}, \emph{logger}}{}
6973 Extracts sources from an archive.
6974 \begin{quote}\begin{description}
6975 \item[{Parameters}] \leavevmode\begin{itemize}
6977 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{where}}) \textendash{} The path to the archive.
6980 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The path where to extract.
6983 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to use.
6987 \item[{Returns}] \leavevmode
6988 True if the extraction is successful
6990 \item[{Return type}] \leavevmode
6993 \end{description}\end{quote}
6997 \index{cvs\_extract() (in module src.system)}
6999 \begin{fulllineitems}
7000 \phantomsection\label{\detokenize{commands/apidoc/src:src.system.cvs_extract}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.system.}}\sphinxbfcode{\sphinxupquote{cvs\_extract}}}{\emph{protocol}, \emph{user}, \emph{server}, \emph{base}, \emph{tag}, \emph{product}, \emph{where}, \emph{logger}, \emph{checkout=False}, \emph{environment=None}}{}
7001 Extracts sources from a cvs repository.
7002 \begin{quote}\begin{description}
7003 \item[{Parameters}] \leavevmode\begin{itemize}
7005 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{where}}) \textendash{} The cvs protocol.
7008 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The user to be used.
7011 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The remote cvs server.
7014 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{}
7019 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The tag.
7022 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The product.
7025 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The path where to extract.
7028 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to use.
7031 \sphinxstyleliteralstrong{\sphinxupquote{boolean}} (\sphinxstyleliteralemphasis{\sphinxupquote{checkout}}) \textendash{} If true use checkout cvs.
7034 \sphinxstyleliteralstrong{\sphinxupquote{src.environment.Environ}} (\sphinxstyleliteralemphasis{\sphinxupquote{environment}}) \textendash{} The environment to source when
7039 \item[{Returns}] \leavevmode
7040 True if the extraction is successful
7042 \item[{Return type}] \leavevmode
7045 \end{description}\end{quote}
7049 \index{git\_extract() (in module src.system)}
7051 \begin{fulllineitems}
7052 \phantomsection\label{\detokenize{commands/apidoc/src:src.system.git_extract}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.system.}}\sphinxbfcode{\sphinxupquote{git\_extract}}}{\emph{from\_what}, \emph{tag}, \emph{where}, \emph{logger}, \emph{environment=None}}{}
7053 Extracts sources from a git repository.
7054 \begin{quote}\begin{description}
7055 \item[{Parameters}] \leavevmode\begin{itemize}
7057 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{where}}) \textendash{} The remote git repository.
7060 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The tag.
7063 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The path where to extract.
7066 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to use.
7069 \sphinxstyleliteralstrong{\sphinxupquote{src.environment.Environ}} (\sphinxstyleliteralemphasis{\sphinxupquote{environment}}) \textendash{} The environment to source when
7074 \item[{Returns}] \leavevmode
7075 True if the extraction is successful
7077 \item[{Return type}] \leavevmode
7080 \end{description}\end{quote}
7084 \index{show\_in\_editor() (in module src.system)}
7086 \begin{fulllineitems}
7087 \phantomsection\label{\detokenize{commands/apidoc/src:src.system.show_in_editor}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.system.}}\sphinxbfcode{\sphinxupquote{show\_in\_editor}}}{\emph{editor}, \emph{filePath}, \emph{logger}}{}
7088 open filePath using editor.
7089 \begin{quote}\begin{description}
7090 \item[{Parameters}] \leavevmode\begin{itemize}
7092 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{filePath}}) \textendash{} The editor to use.
7095 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The path to the file to open.
7099 \end{description}\end{quote}
7103 \index{svn\_extract() (in module src.system)}
7105 \begin{fulllineitems}
7106 \phantomsection\label{\detokenize{commands/apidoc/src:src.system.svn_extract}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.system.}}\sphinxbfcode{\sphinxupquote{svn\_extract}}}{\emph{user}, \emph{from\_what}, \emph{tag}, \emph{where}, \emph{logger}, \emph{checkout=False}, \emph{environment=None}}{}
7107 Extracts sources from a svn repository.
7108 \begin{quote}\begin{description}
7109 \item[{Parameters}] \leavevmode\begin{itemize}
7111 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{where}}) \textendash{} The user to be used.
7114 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The remote git repository.
7117 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The tag.
7120 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The path where to extract.
7123 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to use.
7126 \sphinxstyleliteralstrong{\sphinxupquote{boolean}} (\sphinxstyleliteralemphasis{\sphinxupquote{checkout}}) \textendash{} If true use checkout svn.
7129 \sphinxstyleliteralstrong{\sphinxupquote{src.environment.Environ}} (\sphinxstyleliteralemphasis{\sphinxupquote{environment}}) \textendash{} The environment to source when
7134 \item[{Returns}] \leavevmode
7135 True if the extraction is successful
7137 \item[{Return type}] \leavevmode
7140 \end{description}\end{quote}
7146 \subsubsection{src.template module}
7147 \label{\detokenize{commands/apidoc/src:module-src.template}}\label{\detokenize{commands/apidoc/src:src-template-module}}\index{src.template (module)}\index{MyTemplate (class in src.template)}
7149 \begin{fulllineitems}
7150 \phantomsection\label{\detokenize{commands/apidoc/src:src.template.MyTemplate}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.template.}}\sphinxbfcode{\sphinxupquote{MyTemplate}}}{\emph{template}}{}
7151 Bases: \sphinxcode{\sphinxupquote{string.Template}}
7152 \index{delimiter (src.template.MyTemplate attribute)}
7154 \begin{fulllineitems}
7155 \phantomsection\label{\detokenize{commands/apidoc/src:src.template.MyTemplate.delimiter}}\pysigline{\sphinxbfcode{\sphinxupquote{delimiter}}\sphinxbfcode{\sphinxupquote{ = '\textbackslash{}xc2\textbackslash{}xa4'}}}
7158 \index{pattern (src.template.MyTemplate attribute)}
7160 \begin{fulllineitems}
7161 \phantomsection\label{\detokenize{commands/apidoc/src:src.template.MyTemplate.pattern}}\pysigline{\sphinxbfcode{\sphinxupquote{pattern}}\sphinxbfcode{\sphinxupquote{ = \textless{}\_sre.SRE\_Pattern object\textgreater{}}}}
7167 \index{substitute() (in module src.template)}
7169 \begin{fulllineitems}
7170 \phantomsection\label{\detokenize{commands/apidoc/src:src.template.substitute}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.template.}}\sphinxbfcode{\sphinxupquote{substitute}}}{\emph{template\_file}, \emph{subst\_dic}}{}
7175 \subsubsection{src.test\_module module}
7176 \label{\detokenize{commands/apidoc/src:module-src.test_module}}\label{\detokenize{commands/apidoc/src:src-test-module-module}}\index{src.test\_module (module)}\index{Test (class in src.test\_module)}
7178 \begin{fulllineitems}
7179 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.test\_module.}}\sphinxbfcode{\sphinxupquote{Test}}}{\emph{config}, \emph{logger}, \emph{tmp\_working\_dir}, \emph{testbase=''}, \emph{grids=None}, \emph{sessions=None}, \emph{launcher=''}, \emph{show\_desktop=True}}{}~\index{generate\_launching\_commands() (src.test\_module.Test method)}
7181 \begin{fulllineitems}
7182 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.generate_launching_commands}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{generate\_launching\_commands}}}{}{}
7185 \index{generate\_script() (src.test\_module.Test method)}
7187 \begin{fulllineitems}
7188 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.generate_script}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{generate\_script}}}{\emph{listTest}, \emph{script\_path}, \emph{ignoreList}}{}
7191 \index{get\_test\_timeout() (src.test\_module.Test method)}
7193 \begin{fulllineitems}
7194 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.get_test_timeout}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get\_test\_timeout}}}{\emph{test\_name}, \emph{default\_value}}{}
7197 \index{get\_tmp\_dir() (src.test\_module.Test method)}
7199 \begin{fulllineitems}
7200 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.get_tmp_dir}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get\_tmp\_dir}}}{}{}
7203 \index{prepare\_testbase() (src.test\_module.Test method)}
7205 \begin{fulllineitems}
7206 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.prepare_testbase}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepare\_testbase}}}{\emph{test\_base\_name}}{}
7209 \index{prepare\_testbase\_from\_dir() (src.test\_module.Test method)}
7211 \begin{fulllineitems}
7212 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.prepare_testbase_from_dir}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepare\_testbase\_from\_dir}}}{\emph{testbase\_name}, \emph{testbase\_dir}}{}
7215 \index{prepare\_testbase\_from\_git() (src.test\_module.Test method)}
7217 \begin{fulllineitems}
7218 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.prepare_testbase_from_git}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepare\_testbase\_from\_git}}}{\emph{testbase\_name}, \emph{testbase\_base}, \emph{testbase\_tag}}{}
7221 \index{prepare\_testbase\_from\_svn() (src.test\_module.Test method)}
7223 \begin{fulllineitems}
7224 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.prepare_testbase_from_svn}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepare\_testbase\_from\_svn}}}{\emph{user}, \emph{testbase\_name}, \emph{testbase\_base}}{}
7227 \index{read\_results() (src.test\_module.Test method)}
7229 \begin{fulllineitems}
7230 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.read_results}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{read\_results}}}{\emph{listTest}, \emph{has\_timed\_out}}{}
7233 \index{run\_all\_tests() (src.test\_module.Test method)}
7235 \begin{fulllineitems}
7236 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.run_all_tests}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{run\_all\_tests}}}{}{}
7239 \index{run\_grid\_tests() (src.test\_module.Test method)}
7241 \begin{fulllineitems}
7242 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.run_grid_tests}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{run\_grid\_tests}}}{}{}
7245 \index{run\_script() (src.test\_module.Test method)}
7247 \begin{fulllineitems}
7248 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.run_script}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{run\_script}}}{\emph{script\_name}}{}
7251 \index{run\_session\_tests() (src.test\_module.Test method)}
7253 \begin{fulllineitems}
7254 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.run_session_tests}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{run\_session\_tests}}}{}{}
7257 \index{run\_testbase\_tests() (src.test\_module.Test method)}
7259 \begin{fulllineitems}
7260 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.run_testbase_tests}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{run\_testbase\_tests}}}{}{}
7263 \index{run\_tests() (src.test\_module.Test method)}
7265 \begin{fulllineitems}
7266 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.run_tests}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{run\_tests}}}{\emph{listTest}, \emph{ignoreList}}{}
7269 \index{search\_known\_errors() (src.test\_module.Test method)}
7271 \begin{fulllineitems}
7272 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.search_known_errors}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{search\_known\_errors}}}{\emph{status}, \emph{test\_grid}, \emph{test\_session}, \emph{test}}{}
7275 \index{write\_test\_margin() (src.test\_module.Test method)}
7277 \begin{fulllineitems}
7278 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.write_test_margin}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{write\_test\_margin}}}{\emph{tab}}{}
7284 \index{getTmpDirDEFAULT() (in module src.test\_module)}
7286 \begin{fulllineitems}
7287 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.getTmpDirDEFAULT}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.test\_module.}}\sphinxbfcode{\sphinxupquote{getTmpDirDEFAULT}}}{}{}
7292 \subsubsection{src.xmlManager module}
7293 \label{\detokenize{commands/apidoc/src:src-xmlmanager-module}}\label{\detokenize{commands/apidoc/src:module-src.xmlManager}}\index{src.xmlManager (module)}\index{ReadXmlFile (class in src.xmlManager)}
7295 \begin{fulllineitems}
7296 \phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.ReadXmlFile}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.xmlManager.}}\sphinxbfcode{\sphinxupquote{ReadXmlFile}}}{\emph{filePath}}{}
7297 Bases: \sphinxcode{\sphinxupquote{object}}
7299 Class to manage reading of an xml log file
7300 \index{getRootAttrib() (src.xmlManager.ReadXmlFile method)}
7302 \begin{fulllineitems}
7303 \phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.ReadXmlFile.getRootAttrib}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{getRootAttrib}}}{}{}
7304 Get the attibutes of the self.xmlroot
7305 \begin{quote}\begin{description}
7306 \item[{Returns}] \leavevmode
7307 The attributes of the root node
7309 \item[{Return type}] \leavevmode
7312 \end{description}\end{quote}
7316 \index{get\_attrib() (src.xmlManager.ReadXmlFile method)}
7318 \begin{fulllineitems}
7319 \phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.ReadXmlFile.get_attrib}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get\_attrib}}}{\emph{node\_name}}{}
7320 Get the attibutes of the node node\_name in self.xmlroot
7321 \begin{quote}\begin{description}
7322 \item[{Parameters}] \leavevmode
7323 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{node\_name}}) \textendash{} the name of the node
7325 \item[{Returns}] \leavevmode
7326 the attibutes of the node node\_name in self.xmlroot
7328 \item[{Return type}] \leavevmode
7331 \end{description}\end{quote}
7335 \index{get\_node\_text() (src.xmlManager.ReadXmlFile method)}
7337 \begin{fulllineitems}
7338 \phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.ReadXmlFile.get_node_text}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get\_node\_text}}}{\emph{node}}{}~\begin{description}
7339 \item[{Get the text of the first node that has name }] \leavevmode
7340 that corresponds to the parameter node
7343 \begin{quote}\begin{description}
7344 \item[{Parameters}] \leavevmode
7345 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{node}}) \textendash{} the name of the node from which get the text
7347 \item[{Returns}] \leavevmode
7348 the text of the first node that has name
7349 that corresponds to the parameter node
7351 \item[{Return type}] \leavevmode
7354 \end{description}\end{quote}
7361 \index{XmlLogFile (class in src.xmlManager)}
7363 \begin{fulllineitems}
7364 \phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.XmlLogFile}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.xmlManager.}}\sphinxbfcode{\sphinxupquote{XmlLogFile}}}{\emph{filePath}, \emph{rootname}, \emph{attrib=\{\}}}{}
7365 Bases: \sphinxcode{\sphinxupquote{object}}
7367 Class to manage writing in salomeTools xml log file
7368 \index{add\_simple\_node() (src.xmlManager.XmlLogFile method)}
7370 \begin{fulllineitems}
7371 \phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.XmlLogFile.add_simple_node}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_simple\_node}}}{\emph{node\_name}, \emph{text=None}, \emph{attrib=\{\}}}{}
7372 Add a node with some attibutes and text to the root node.
7373 \begin{quote}\begin{description}
7374 \item[{Parameters}] \leavevmode\begin{itemize}
7376 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{text}}) \textendash{} the name of the node to add
7379 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the text of the node
7382 \sphinxstyleliteralstrong{\sphinxupquote{dict}} (\sphinxstyleliteralemphasis{\sphinxupquote{attrib}}) \textendash{} the dictionary containing the
7383 attribute of the new node
7387 \end{description}\end{quote}
7391 \index{append\_node\_attrib() (src.xmlManager.XmlLogFile method)}
7393 \begin{fulllineitems}
7394 \phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.XmlLogFile.append_node_attrib}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append\_node\_attrib}}}{\emph{node\_name}, \emph{attrib}}{}
7395 Append a new attributes to the node that has node\_name as name
7396 \begin{quote}\begin{description}
7397 \item[{Parameters}] \leavevmode\begin{itemize}
7399 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{node\_name}}) \textendash{} The name of the node on which append text
7402 \sphinxstyleliteralstrong{\sphinxupquote{dixt}} (\sphinxstyleliteralemphasis{\sphinxupquote{attrib}}) \textendash{} The attrib to append
7406 \end{description}\end{quote}
7410 \index{append\_node\_text() (src.xmlManager.XmlLogFile method)}
7412 \begin{fulllineitems}
7413 \phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.XmlLogFile.append_node_text}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append\_node\_text}}}{\emph{node\_name}, \emph{text}}{}
7414 Append a new text to the node that has node\_name as name
7415 \begin{quote}\begin{description}
7416 \item[{Parameters}] \leavevmode\begin{itemize}
7418 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{text}}) \textendash{} The name of the node on which append text
7421 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The text to append
7425 \end{description}\end{quote}
7429 \index{write\_tree() (src.xmlManager.XmlLogFile method)}
7431 \begin{fulllineitems}
7432 \phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.XmlLogFile.write_tree}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{write\_tree}}}{\emph{stylesheet=None}, \emph{file\_path=None}}{}
7433 Write the xml tree in the log file path. Add the stylesheet if asked.
7434 \begin{quote}\begin{description}
7435 \item[{Parameters}] \leavevmode
7436 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{stylesheet}}) \textendash{} The stylesheet to apply to the xml file
7438 \end{description}\end{quote}
7445 \index{add\_simple\_node() (in module src.xmlManager)}
7447 \begin{fulllineitems}
7448 \phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.add_simple_node}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.xmlManager.}}\sphinxbfcode{\sphinxupquote{add\_simple\_node}}}{\emph{root\_node}, \emph{node\_name}, \emph{text=None}, \emph{attrib=\{\}}}{}
7449 Add a node with some attibutes and text to the root node.
7450 \begin{quote}\begin{description}
7451 \item[{Parameters}] \leavevmode\begin{itemize}
7453 \sphinxstyleliteralstrong{\sphinxupquote{etree.Element}} (\sphinxstyleliteralemphasis{\sphinxupquote{root\_node}}) \textendash{} the Etree element where to add the new node
7456 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{text}}) \textendash{} the name of the node to add
7459 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the text of the node
7462 \sphinxstyleliteralstrong{\sphinxupquote{dict}} (\sphinxstyleliteralemphasis{\sphinxupquote{attrib}}) \textendash{} the dictionary containing the
7463 attribute of the new node
7467 \end{description}\end{quote}
7471 \index{append\_node\_attrib() (in module src.xmlManager)}
7473 \begin{fulllineitems}
7474 \phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.append_node_attrib}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.xmlManager.}}\sphinxbfcode{\sphinxupquote{append\_node\_attrib}}}{\emph{root\_node}, \emph{attrib}}{}
7475 Append a new attributes to the node that has node\_name as name
7476 \begin{quote}\begin{description}
7477 \item[{Parameters}] \leavevmode\begin{itemize}
7479 \sphinxstyleliteralstrong{\sphinxupquote{etree.Element}} (\sphinxstyleliteralemphasis{\sphinxupquote{root\_node}}) \textendash{} the Etree element
7480 where to append the new attibutes
7483 \sphinxstyleliteralstrong{\sphinxupquote{dixt}} (\sphinxstyleliteralemphasis{\sphinxupquote{attrib}}) \textendash{} The attrib to append
7487 \end{description}\end{quote}
7491 \index{find\_node\_by\_attrib() (in module src.xmlManager)}
7493 \begin{fulllineitems}
7494 \phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.find_node_by_attrib}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.xmlManager.}}\sphinxbfcode{\sphinxupquote{find\_node\_by\_attrib}}}{\emph{xmlroot}, \emph{name\_node}, \emph{key}, \emph{value}}{}~\begin{description}
7495 \item[{Find the nfirst ode from xmlroot that has name name\_node and that has in }] \leavevmode
7496 its attributes \{key : value\}. Return the node
7499 \begin{quote}\begin{description}
7500 \item[{Parameters}] \leavevmode\begin{itemize}
7502 \sphinxstyleliteralstrong{\sphinxupquote{etree.Element}} (\sphinxstyleliteralemphasis{\sphinxupquote{xmlroot}}) \textendash{} the Etree element where to search
7505 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the name of node to search
7508 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the key to search
7511 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to search
7515 \item[{Returns}] \leavevmode
7518 \item[{Return type}] \leavevmode
7519 xmlroot etree.Element
7521 \end{description}\end{quote}
7525 \index{write\_report() (in module src.xmlManager)}
7527 \begin{fulllineitems}
7528 \phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.write_report}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.xmlManager.}}\sphinxbfcode{\sphinxupquote{write\_report}}}{\emph{filename}, \emph{xmlroot}, \emph{stylesheet}}{}
7529 Writes a report file from a XML tree.
7530 \begin{quote}\begin{description}
7531 \item[{Parameters}] \leavevmode\begin{itemize}
7533 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{stylesheet}}) \textendash{} The path to the file to create
7536 \sphinxstyleliteralstrong{\sphinxupquote{etree.Element}} (\sphinxstyleliteralemphasis{\sphinxupquote{xmlroot}}) \textendash{} the Etree element to write to the file
7539 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The stylesheet to add to the begin of the file
7543 \end{description}\end{quote}
7549 \subsubsection{Module contents}
7550 \label{\detokenize{commands/apidoc/src:module-src}}\label{\detokenize{commands/apidoc/src:module-contents}}\index{src (module)}
7551 initial imports and utilities methods for salomeTools
7552 \index{Path (class in src)}
7554 \begin{fulllineitems}
7555 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{Path}}}{\emph{path}}{}~\index{base() (src.Path method)}
7557 \begin{fulllineitems}
7558 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.base}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{base}}}{}{}
7561 \index{chmod() (src.Path method)}
7563 \begin{fulllineitems}
7564 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.chmod}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{chmod}}}{\emph{mode}}{}
7567 \index{copy() (src.Path method)}
7569 \begin{fulllineitems}
7570 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.copy}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{copy}}}{\emph{path}, \emph{smart=False}}{}
7573 \index{copydir() (src.Path method)}
7575 \begin{fulllineitems}
7576 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.copydir}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{copydir}}}{\emph{dst}, \emph{smart=False}}{}
7579 \index{copyfile() (src.Path method)}
7581 \begin{fulllineitems}
7582 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.copyfile}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{copyfile}}}{\emph{path}}{}
7585 \index{copylink() (src.Path method)}
7587 \begin{fulllineitems}
7588 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.copylink}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{copylink}}}{\emph{path}}{}
7591 \index{dir() (src.Path method)}
7593 \begin{fulllineitems}
7594 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.dir}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{dir}}}{}{}
7597 \index{exists() (src.Path method)}
7599 \begin{fulllineitems}
7600 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.exists}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{exists}}}{}{}
7603 \index{isdir() (src.Path method)}
7605 \begin{fulllineitems}
7606 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.isdir}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{isdir}}}{}{}
7609 \index{isfile() (src.Path method)}
7611 \begin{fulllineitems}
7612 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.isfile}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{isfile}}}{}{}
7615 \index{islink() (src.Path method)}
7617 \begin{fulllineitems}
7618 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.islink}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{islink}}}{}{}
7621 \index{list() (src.Path method)}
7623 \begin{fulllineitems}
7624 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.list}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{list}}}{}{}
7627 \index{make() (src.Path method)}
7629 \begin{fulllineitems}
7630 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.make}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{make}}}{\emph{mode=None}}{}
7633 \index{readlink() (src.Path method)}
7635 \begin{fulllineitems}
7636 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.readlink}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{readlink}}}{}{}
7639 \index{rm() (src.Path method)}
7641 \begin{fulllineitems}
7642 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.rm}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{rm}}}{}{}
7645 \index{smartcopy() (src.Path method)}
7647 \begin{fulllineitems}
7648 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.smartcopy}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{smartcopy}}}{\emph{path}}{}
7651 \index{symlink() (src.Path method)}
7653 \begin{fulllineitems}
7654 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.symlink}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{symlink}}}{\emph{path}}{}
7660 \index{SatException}
7662 \begin{fulllineitems}
7663 \phantomsection\label{\detokenize{commands/apidoc/src:src.SatException}}\pysigline{\sphinxbfcode{\sphinxupquote{exception }}\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{SatException}}}
7664 Bases: \sphinxcode{\sphinxupquote{exceptions.Exception}}
7666 rename Exception Class
7670 \index{activate\_mesa\_property() (in module src)}
7672 \begin{fulllineitems}
7673 \phantomsection\label{\detokenize{commands/apidoc/src:src.activate_mesa_property}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{activate\_mesa\_property}}}{\emph{config}}{}
7674 Add mesa property into application properties
7675 \begin{quote}\begin{description}
7676 \item[{Parameters}] \leavevmode
7677 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The global configuration. It must have an application!
7679 \end{description}\end{quote}
7683 \index{check\_config\_has\_application() (in module src)}
7685 \begin{fulllineitems}
7686 \phantomsection\label{\detokenize{commands/apidoc/src:src.check_config_has_application}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{check\_config\_has\_application}}}{\emph{config}, \emph{details=None}}{}
7687 check that the config has the key APPLICATION. Else raise an exception.
7688 \begin{quote}\begin{description}
7689 \item[{Parameters}] \leavevmode
7690 \sphinxstyleliteralstrong{\sphinxupquote{class 'common.pyconf.Config'}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The config.
7692 \end{description}\end{quote}
7696 \index{check\_config\_has\_profile() (in module src)}
7698 \begin{fulllineitems}
7699 \phantomsection\label{\detokenize{commands/apidoc/src:src.check_config_has_profile}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{check\_config\_has\_profile}}}{\emph{config}, \emph{details=None}}{}
7700 check that the config has the key APPLICATION.profile.
7701 else, raise an exception.
7702 \begin{quote}\begin{description}
7703 \item[{Parameters}] \leavevmode
7704 \sphinxstyleliteralstrong{\sphinxupquote{class 'common.pyconf.Config'}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The config.
7706 \end{description}\end{quote}
7710 \index{config\_has\_application() (in module src)}
7712 \begin{fulllineitems}
7713 \phantomsection\label{\detokenize{commands/apidoc/src:src.config_has_application}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{config\_has\_application}}}{\emph{config}}{}
7716 \index{deepcopy\_list() (in module src)}
7718 \begin{fulllineitems}
7719 \phantomsection\label{\detokenize{commands/apidoc/src:src.deepcopy_list}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{deepcopy\_list}}}{\emph{input\_list}}{}
7720 Do a deep copy of a list
7721 \begin{quote}\begin{description}
7722 \item[{Parameters}] \leavevmode
7723 \sphinxstyleliteralstrong{\sphinxupquote{List}} (\sphinxstyleliteralemphasis{\sphinxupquote{input\_list}}) \textendash{} The list to copy
7725 \item[{Returns}] \leavevmode
7726 The copy of the list
7728 \item[{Return type}] \leavevmode
7731 \end{description}\end{quote}
7735 \index{ensure\_path\_exists() (in module src)}
7737 \begin{fulllineitems}
7738 \phantomsection\label{\detokenize{commands/apidoc/src:src.ensure_path_exists}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{ensure\_path\_exists}}}{\emph{p}}{}
7739 Create a path if not existing
7740 \begin{quote}\begin{description}
7741 \item[{Parameters}] \leavevmode
7742 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{p}}) \textendash{} The path.
7744 \end{description}\end{quote}
7748 \index{find\_file\_in\_lpath() (in module src)}
7750 \begin{fulllineitems}
7751 \phantomsection\label{\detokenize{commands/apidoc/src:src.find_file_in_lpath}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{find\_file\_in\_lpath}}}{\emph{file\_name}, \emph{lpath}, \emph{additional\_dir=''}}{}
7752 Find in all the directories in lpath list the file that has the same name
7755 then return the full path of the file
7758 The additional\_dir (optional) is the name of the directory to add to all
7760 \begin{quote}\begin{description}
7761 \item[{Parameters}] \leavevmode\begin{itemize}
7763 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{additional\_dir}}) \textendash{} The file name to search
7766 \sphinxstyleliteralstrong{\sphinxupquote{List}} (\sphinxstyleliteralemphasis{\sphinxupquote{lpath}}) \textendash{} The list of directories where to search
7769 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The name of the additional directory
7773 \item[{Returns}] \leavevmode
7774 the full path of the file or False if not found
7776 \item[{Return type}] \leavevmode
7779 \end{description}\end{quote}
7783 \index{get\_base\_path() (in module src)}
7785 \begin{fulllineitems}
7786 \phantomsection\label{\detokenize{commands/apidoc/src:src.get_base_path}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{get\_base\_path}}}{\emph{config}}{}
7787 Returns the path of the products base.
7788 \begin{quote}\begin{description}
7789 \item[{Parameters}] \leavevmode
7790 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The global Config instance.
7792 \item[{Returns}] \leavevmode
7793 The path of the products base.
7795 \item[{Return type}] \leavevmode
7798 \end{description}\end{quote}
7802 \index{get\_cfg\_param() (in module src)}
7804 \begin{fulllineitems}
7805 \phantomsection\label{\detokenize{commands/apidoc/src:src.get_cfg_param}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{get\_cfg\_param}}}{\emph{config}, \emph{param\_name}, \emph{default}}{}
7806 eearch for param\_name value in config.
7807 if param\_name is not in config
7808 then return default,
7809 else return the found value
7810 \begin{quote}\begin{description}
7811 \item[{Parameters}] \leavevmode\begin{itemize}
7813 \sphinxstyleliteralstrong{\sphinxupquote{class 'common.pyconf.Config'}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The config.
7816 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{default}}) \textendash{} the name of the parameter to get the value
7819 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The value to return if param\_name is not in config
7823 \item[{Returns}] \leavevmode
7824 see initial description of the function
7826 \item[{Return type}] \leavevmode
7829 \end{description}\end{quote}
7833 \index{get\_launcher\_name() (in module src)}
7835 \begin{fulllineitems}
7836 \phantomsection\label{\detokenize{commands/apidoc/src:src.get_launcher_name}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{get\_launcher\_name}}}{\emph{config}}{}
7837 Returns the name of salome launcher.
7838 \begin{quote}\begin{description}
7839 \item[{Parameters}] \leavevmode
7840 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The global Config instance.
7842 \item[{Returns}] \leavevmode
7843 The name of salome launcher.
7845 \item[{Return type}] \leavevmode
7848 \end{description}\end{quote}
7852 \index{get\_log\_path() (in module src)}
7854 \begin{fulllineitems}
7855 \phantomsection\label{\detokenize{commands/apidoc/src:src.get_log_path}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{get\_log\_path}}}{\emph{config}}{}
7856 Returns the path of the logs.
7857 \begin{quote}\begin{description}
7858 \item[{Parameters}] \leavevmode
7859 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The global Config instance.
7861 \item[{Returns}] \leavevmode
7862 The path of the logs.
7864 \item[{Return type}] \leavevmode
7867 \end{description}\end{quote}
7871 \index{get\_property\_in\_product\_cfg() (in module src)}
7873 \begin{fulllineitems}
7874 \phantomsection\label{\detokenize{commands/apidoc/src:src.get_property_in_product_cfg}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{get\_property\_in\_product\_cfg}}}{\emph{product\_cfg}, \emph{pprty}}{}
7877 \index{get\_salome\_version() (in module src)}
7879 \begin{fulllineitems}
7880 \phantomsection\label{\detokenize{commands/apidoc/src:src.get_salome_version}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{get\_salome\_version}}}{\emph{config}}{}
7883 \index{get\_tmp\_filename() (in module src)}
7885 \begin{fulllineitems}
7886 \phantomsection\label{\detokenize{commands/apidoc/src:src.get_tmp_filename}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{get\_tmp\_filename}}}{\emph{cfg}, \emph{name}}{}
7889 \index{handleRemoveReadonly() (in module src)}
7891 \begin{fulllineitems}
7892 \phantomsection\label{\detokenize{commands/apidoc/src:src.handleRemoveReadonly}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{handleRemoveReadonly}}}{\emph{func}, \emph{path}, \emph{exc}}{}
7895 \index{merge\_dicts() (in module src)}
7897 \begin{fulllineitems}
7898 \phantomsection\label{\detokenize{commands/apidoc/src:src.merge_dicts}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{merge\_dicts}}}{\emph{*dict\_args}}{}
7899 Given any number of dicts, shallow copy and merge into a new dict,
7900 precedence goes to key value pairs in latter dicts.
7904 \index{only\_numbers() (in module src)}
7906 \begin{fulllineitems}
7907 \phantomsection\label{\detokenize{commands/apidoc/src:src.only_numbers}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{only\_numbers}}}{\emph{str\_num}}{}
7910 \index{parse\_date() (in module src)}
7912 \begin{fulllineitems}
7913 \phantomsection\label{\detokenize{commands/apidoc/src:src.parse_date}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{parse\_date}}}{\emph{date}}{}
7914 Transform YYYYMMDD\_hhmmss into YYYY-MM-DD hh:mm:ss.
7915 \begin{quote}\begin{description}
7916 \item[{Parameters}] \leavevmode
7917 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{date}}) \textendash{} The date to transform
7919 \item[{Returns}] \leavevmode
7920 The date in the new format
7922 \item[{Return type}] \leavevmode
7925 \end{description}\end{quote}
7929 \index{print\_info() (in module src)}
7931 \begin{fulllineitems}
7932 \phantomsection\label{\detokenize{commands/apidoc/src:src.print_info}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{print\_info}}}{\emph{logger}, \emph{info}}{}
7933 Prints the tuples that are in info variable in a formatted way.
7934 \begin{quote}\begin{description}
7935 \item[{Parameters}] \leavevmode\begin{itemize}
7937 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logging instance to use for the prints.
7940 \sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{info}}) \textendash{} The list of tuples to display
7944 \end{description}\end{quote}
7948 \index{read\_config\_from\_a\_file() (in module src)}
7950 \begin{fulllineitems}
7951 \phantomsection\label{\detokenize{commands/apidoc/src:src.read_config_from_a_file}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{read\_config\_from\_a\_file}}}{\emph{filePath}}{}
7954 \index{remove\_item\_from\_list() (in module src)}
7956 \begin{fulllineitems}
7957 \phantomsection\label{\detokenize{commands/apidoc/src:src.remove_item_from_list}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{remove\_item\_from\_list}}}{\emph{input\_list}, \emph{item}}{}
7958 Remove all occurences of item from input\_list
7959 \begin{quote}\begin{description}
7960 \item[{Parameters}] \leavevmode
7961 \sphinxstyleliteralstrong{\sphinxupquote{List}} (\sphinxstyleliteralemphasis{\sphinxupquote{input\_list}}) \textendash{} The list to modify
7963 \item[{Returns}] \leavevmode
7964 The without any item
7966 \item[{Return type}] \leavevmode
7969 \end{description}\end{quote}
7973 \index{replace\_in\_file() (in module src)}
7975 \begin{fulllineitems}
7976 \phantomsection\label{\detokenize{commands/apidoc/src:src.replace_in_file}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{replace\_in\_file}}}{\emph{filein}, \emph{strin}, \emph{strout}}{}
7977 Replace \textless{}strin\textgreater{} by \textless{}strout\textgreater{} in file \textless{}filein\textgreater{}
7983 \chapter{Release Notes}
7984 \label{\detokenize{index:release-notes}}
7986 \section{Release notes}
7987 \label{\detokenize{release_notes/release_notes_5.0.0:release-notes}}\label{\detokenize{release_notes/release_notes_5.0.0::doc}}
7991 \renewcommand{\indexname}{Python Module Index}
7992 \begin{sphinxtheindex}
7993 \def\bigletter#1{{\Large\sffamily#1}\nopagebreak\vspace{1mm}}
7995 \item {\sphinxstyleindexentry{src}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src}}
7996 \item {\sphinxstyleindexentry{src.architecture}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.architecture}}
7997 \item {\sphinxstyleindexentry{src.colorama}}\sphinxstyleindexpageref{commands/apidoc/src.colorama:\detokenize{module-src.colorama}}
7998 \item {\sphinxstyleindexentry{src.colorama.ansi}}\sphinxstyleindexpageref{commands/apidoc/src.colorama:\detokenize{module-src.colorama.ansi}}
7999 \item {\sphinxstyleindexentry{src.colorama.ansitowin32}}\sphinxstyleindexpageref{commands/apidoc/src.colorama:\detokenize{module-src.colorama.ansitowin32}}
8000 \item {\sphinxstyleindexentry{src.colorama.initialise}}\sphinxstyleindexpageref{commands/apidoc/src.colorama:\detokenize{module-src.colorama.initialise}}
8001 \item {\sphinxstyleindexentry{src.colorama.win32}}\sphinxstyleindexpageref{commands/apidoc/src.colorama:\detokenize{module-src.colorama.win32}}
8002 \item {\sphinxstyleindexentry{src.colorama.winterm}}\sphinxstyleindexpageref{commands/apidoc/src.colorama:\detokenize{module-src.colorama.winterm}}
8003 \item {\sphinxstyleindexentry{src.compilation}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.compilation}}
8004 \item {\sphinxstyleindexentry{src.debug}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.debug}}
8005 \item {\sphinxstyleindexentry{src.ElementTree}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.ElementTree}}
8006 \item {\sphinxstyleindexentry{src.environment}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.environment}}
8007 \item {\sphinxstyleindexentry{src.fileEnviron}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.fileEnviron}}
8008 \item {\sphinxstyleindexentry{src.fork}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.fork}}
8009 \item {\sphinxstyleindexentry{src.logger}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.logger}}
8010 \item {\sphinxstyleindexentry{src.options}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.options}}
8011 \item {\sphinxstyleindexentry{src.printcolors}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.printcolors}}
8012 \item {\sphinxstyleindexentry{src.product}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.product}}
8013 \item {\sphinxstyleindexentry{src.pyconf}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.pyconf}}
8014 \item {\sphinxstyleindexentry{src.system}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.system}}
8015 \item {\sphinxstyleindexentry{src.template}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.template}}
8016 \item {\sphinxstyleindexentry{src.test\_module}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.test_module}}
8017 \item {\sphinxstyleindexentry{src.xmlManager}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.xmlManager}}
8018 \end{sphinxtheindex}
8020 \renewcommand{\indexname}{Index}