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 in format xml/html:
360 \fvset{hllines={, ,}}%
361 \begin{sphinxVerbatim}[commandchars=\\\{\}]
362 \PYG{n}{sat} \PYG{n}{doc} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{xml}
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.
2854 Print salomeTools debug messages in sys.stderr.
2855 Show pretty print debug representation from instances of SAT classes
2856 (pretty print src.pyconf.Config)
2858 \begin{DUlineblock}{0em}
2859 \item[] Warning: supposedly show messages in SAT development phase, not production
2862 \item[] \textgreater{}\textgreater{} import debug as DBG
2863 \item[] \textgreater{}\textgreater{} DBG.write(“aTitle”, aVariable) \# not shown in production
2864 \item[] \textgreater{}\textgreater{} DBG.write(“aTitle”, aVariable, True) \# unconditionaly shown (as show=True)
2866 \item[] to set show message as development phase:
2867 \item[] \textgreater{}\textgreater{} DBG.push\_debug(True)
2869 \item[] to set no show message as production phase:
2870 \item[] \textgreater{}\textgreater{} DBG.push\_debug(False)
2872 \item[] to set show message temporary as development phase, only in a method:
2873 \item[] \textgreater{}\textgreater{} def aMethodToDebug(…):
2874 \item[] \textgreater{}\textgreater{} DBG.push\_debug(True) \#force show as appended status
2875 \item[] \textgreater{}\textgreater{} etc. method code with some DBG.write()
2876 \item[] \textgreater{}\textgreater{} DBG.pop\_debug() \#restore previous status (show or not show)
2877 \item[] \textgreater{}\textgreater{} return
2879 \item[] to set a message for future fix, as temporary problem to not forget:
2880 \item[] DBG.tofix(“aTitle”, aVariable, True/False) \#True/False in production shown, or not
2882 \item[] in command line interface you could redirect stderr to file ‘myDebug.log’:
2883 \item[] \textgreater{}\textgreater{} sat compile … 2\textgreater{} myDebug.log \# only stderr
2884 \item[] \textgreater{}\textgreater{} sat compile … \&\textgreater{} myDebug.log \# stdout and stderr
2886 \index{InStream (class in src.debug)}
2888 \begin{fulllineitems}
2889 \phantomsection\label{\detokenize{commands/apidoc/src:src.debug.InStream}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{InStream}}}{\emph{buf=''}}{}
2890 Bases: \sphinxcode{\sphinxupquote{StringIO.StringIO}}
2892 utility class for pyconf.Config input iostream
2896 \index{OutStream (class in src.debug)}
2898 \begin{fulllineitems}
2899 \phantomsection\label{\detokenize{commands/apidoc/src:src.debug.OutStream}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{OutStream}}}{\emph{buf=''}}{}
2900 Bases: \sphinxcode{\sphinxupquote{StringIO.StringIO}}
2902 utility class for pyconf.Config output iostream
2903 \index{close() (src.debug.OutStream method)}
2905 \begin{fulllineitems}
2906 \phantomsection\label{\detokenize{commands/apidoc/src:src.debug.OutStream.close}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{close}}}{}{}
2907 because Config.\_\_save\_\_ calls close() stream as file
2908 keep value before lost as self.value
2915 \index{format\_color\_exception() (in module src.debug)}
2917 \begin{fulllineitems}
2918 \phantomsection\label{\detokenize{commands/apidoc/src:src.debug.format_color_exception}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{format\_color\_exception}}}{\emph{msg}, \emph{limit=None}, \emph{trace=None}}{}
2919 Format a stack trace and the exception information.
2920 as traceback.format\_exception(), with color
2921 with traceback only if (\_debug) or (DBG.\_user in DBG.\_developpers)
2925 \index{format\_exception() (in module src.debug)}
2927 \begin{fulllineitems}
2928 \phantomsection\label{\detokenize{commands/apidoc/src:src.debug.format_exception}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{format\_exception}}}{\emph{msg}, \emph{limit=None}, \emph{trace=None}}{}
2929 Format a stack trace and the exception information.
2930 as traceback.format\_exception(), without color
2931 with traceback only if (\_debug) or (DBG.\_user in DBG.\_developpers)
2935 \index{getLocalEnv() (in module src.debug)}
2937 \begin{fulllineitems}
2938 \phantomsection\label{\detokenize{commands/apidoc/src:src.debug.getLocalEnv}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{getLocalEnv}}}{}{}
2939 get string for environment variables representation
2943 \index{getStrConfigDbg() (in module src.debug)}
2945 \begin{fulllineitems}
2946 \phantomsection\label{\detokenize{commands/apidoc/src:src.debug.getStrConfigDbg}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{getStrConfigDbg}}}{\emph{config}}{}
2947 set string as saveConfigDbg,
2948 as (path expression evaluation) for debug
2952 \index{getStrConfigStd() (in module src.debug)}
2954 \begin{fulllineitems}
2955 \phantomsection\label{\detokenize{commands/apidoc/src:src.debug.getStrConfigStd}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{getStrConfigStd}}}{\emph{config}}{}
2956 set string as saveConfigStd, as file .pyconf
2960 \index{indent() (in module src.debug)}
2962 \begin{fulllineitems}
2963 \phantomsection\label{\detokenize{commands/apidoc/src:src.debug.indent}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{indent}}}{\emph{text}, \emph{amount=2}, \emph{ch=' '}}{}
2964 indent multi lines message
2968 \index{isTypeConfig() (in module src.debug)}
2970 \begin{fulllineitems}
2971 \phantomsection\label{\detokenize{commands/apidoc/src:src.debug.isTypeConfig}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{isTypeConfig}}}{\emph{var}}{}
2972 To know if var is instance from Config/pyconf
2976 \index{pop\_debug() (in module src.debug)}
2978 \begin{fulllineitems}
2979 \phantomsection\label{\detokenize{commands/apidoc/src:src.debug.pop_debug}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{pop\_debug}}}{}{}
2980 restore previous debug outputs status
2984 \index{push\_debug() (in module src.debug)}
2986 \begin{fulllineitems}
2987 \phantomsection\label{\detokenize{commands/apidoc/src:src.debug.push_debug}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{push\_debug}}}{\emph{aBool}}{}
2988 set debug outputs activated, or not
2992 \index{saveConfigDbg() (in module src.debug)}
2994 \begin{fulllineitems}
2995 \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=''}}{}
2996 pyconf returns multilines (path expression evaluation) for debug
3000 \index{saveConfigStd() (in module src.debug)}
3002 \begin{fulllineitems}
3003 \phantomsection\label{\detokenize{commands/apidoc/src:src.debug.saveConfigStd}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{saveConfigStd}}}{\emph{config}, \emph{aStream}}{}
3004 returns as file .pyconf
3008 \index{tofix() (in module src.debug)}
3010 \begin{fulllineitems}
3011 \phantomsection\label{\detokenize{commands/apidoc/src:src.debug.tofix}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{tofix}}}{\emph{title}, \emph{var=''}, \emph{force=None}}{}
3012 write sys.stderr a message if \_debug{[}-1{]}==True or optionaly force=True
3013 use this only if no logger accessible for classic logger.warning(message)
3017 \index{write() (in module src.debug)}
3019 \begin{fulllineitems}
3020 \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'}}{}
3021 write sys.stderr a message if \_debug{[}-1{]}==True or optionaly force=True
3027 \subsubsection{src.environment module}
3028 \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)}
3030 \begin{fulllineitems}
3031 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Environ}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.environment.}}\sphinxbfcode{\sphinxupquote{Environ}}}{\emph{environ=None}}{}
3032 Class to manage the environment context
3033 \index{append() (src.environment.Environ method)}
3035 \begin{fulllineitems}
3036 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Environ.append}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
3037 Same as append\_value but the value argument can be a list
3038 \begin{quote}\begin{description}
3039 \item[{Parameters}] \leavevmode\begin{itemize}
3041 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to append
3044 \sphinxstyleliteralstrong{\sphinxupquote{str}}\sphinxstyleliteralstrong{\sphinxupquote{ or }}\sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the value(s) to append to key
3047 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
3051 \end{description}\end{quote}
3055 \index{append\_value() (src.environment.Environ method)}
3057 \begin{fulllineitems}
3058 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Environ.append_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append\_value}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
3059 append value to key using sep
3060 \begin{quote}\begin{description}
3061 \item[{Parameters}] \leavevmode\begin{itemize}
3063 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to append
3066 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to append to key
3069 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
3073 \end{description}\end{quote}
3077 \index{command\_value() (src.environment.Environ method)}
3079 \begin{fulllineitems}
3080 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Environ.command_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{command\_value}}}{\emph{key}, \emph{command}}{}
3081 Get the value given by the system command “command”
3082 and put it in the environment variable key
3083 \begin{quote}\begin{description}
3084 \item[{Parameters}] \leavevmode\begin{itemize}
3086 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{command}}) \textendash{} the environment variable
3089 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the command to execute
3093 \end{description}\end{quote}
3097 \index{get() (src.environment.Environ method)}
3099 \begin{fulllineitems}
3100 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Environ.get}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get}}}{\emph{key}}{}
3101 Get the value of the environment variable “key”
3102 \begin{quote}\begin{description}
3103 \item[{Parameters}] \leavevmode
3104 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable
3106 \end{description}\end{quote}
3110 \index{is\_defined() (src.environment.Environ method)}
3112 \begin{fulllineitems}
3113 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Environ.is_defined}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{is\_defined}}}{\emph{key}}{}
3114 Check if the key exists in the environment
3115 \begin{quote}\begin{description}
3116 \item[{Parameters}] \leavevmode
3117 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable to check
3119 \end{description}\end{quote}
3123 \index{prepend() (src.environment.Environ method)}
3125 \begin{fulllineitems}
3126 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Environ.prepend}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepend}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
3127 Same as prepend\_value but the value argument can be a list
3128 \begin{quote}\begin{description}
3129 \item[{Parameters}] \leavevmode\begin{itemize}
3131 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to prepend
3134 \sphinxstyleliteralstrong{\sphinxupquote{str}}\sphinxstyleliteralstrong{\sphinxupquote{ or }}\sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the value(s) to prepend to key
3137 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
3141 \end{description}\end{quote}
3145 \index{prepend\_value() (src.environment.Environ method)}
3147 \begin{fulllineitems}
3148 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Environ.prepend_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepend\_value}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
3149 prepend value to key using sep
3150 \begin{quote}\begin{description}
3151 \item[{Parameters}] \leavevmode\begin{itemize}
3153 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to prepend
3156 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to prepend to key
3159 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
3163 \end{description}\end{quote}
3167 \index{set() (src.environment.Environ method)}
3169 \begin{fulllineitems}
3170 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Environ.set}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set}}}{\emph{key}, \emph{value}}{}
3171 Set the environment variable “key” to value “value”
3172 \begin{quote}\begin{description}
3173 \item[{Parameters}] \leavevmode\begin{itemize}
3175 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the environment variable to set
3178 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value
3182 \end{description}\end{quote}
3189 \index{FileEnvWriter (class in src.environment)}
3191 \begin{fulllineitems}
3192 \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}}{}
3193 Class to dump the environment to a file.
3194 \index{write\_cfgForPy\_file() (src.environment.FileEnvWriter method)}
3196 \begin{fulllineitems}
3197 \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}}{}
3198 Append to current opened aFile a cfgForPy
3199 environment (SALOME python launcher).
3200 \begin{quote}\begin{description}
3201 \item[{Parameters}] \leavevmode\begin{itemize}
3203 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{for\_package}}) \textendash{} the file path
3206 \sphinxstyleliteralstrong{\sphinxupquote{dict}} (\sphinxstyleliteralemphasis{\sphinxupquote{additional\_env}}) \textendash{} a dictionary of additional variables
3207 to add to the environment
3210 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} If not None, produce a relative environment
3211 designed for a package.
3215 \end{description}\end{quote}
3219 \index{write\_env\_file() (src.environment.FileEnvWriter method)}
3221 \begin{fulllineitems}
3222 \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}}{}
3223 Create an environment file.
3224 \begin{quote}\begin{description}
3225 \item[{Parameters}] \leavevmode\begin{itemize}
3227 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{shell}}) \textendash{} the file path
3230 \sphinxstyleliteralstrong{\sphinxupquote{bool}} (\sphinxstyleliteralemphasis{\sphinxupquote{forBuild}}) \textendash{} if true, the build environment
3233 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the type of file wanted (.sh, .bat)
3237 \item[{Returns}] \leavevmode
3238 The path to the generated file
3240 \item[{Return type}] \leavevmode
3243 \end{description}\end{quote}
3250 \index{SalomeEnviron (class in src.environment)}
3252 \begin{fulllineitems}
3253 \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}}{}
3254 Class to manage the environment of SALOME.
3255 \index{add\_comment() (src.environment.SalomeEnviron method)}
3257 \begin{fulllineitems}
3258 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.add_comment}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_comment}}}{\emph{comment}}{}
3259 Add a commentary to the out stream (in case of file generation)
3260 \begin{quote}\begin{description}
3261 \item[{Parameters}] \leavevmode
3262 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{comment}}) \textendash{} the commentary to add
3264 \end{description}\end{quote}
3268 \index{add\_line() (src.environment.SalomeEnviron method)}
3270 \begin{fulllineitems}
3271 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.add_line}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_line}}}{\emph{nb\_line}}{}
3272 Add empty lines to the out stream (in case of file generation)
3273 \begin{quote}\begin{description}
3274 \item[{Parameters}] \leavevmode
3275 \sphinxstyleliteralstrong{\sphinxupquote{int}} (\sphinxstyleliteralemphasis{\sphinxupquote{nb\_line}}) \textendash{} the number of empty lines to add
3277 \end{description}\end{quote}
3281 \index{add\_warning() (src.environment.SalomeEnviron method)}
3283 \begin{fulllineitems}
3284 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.add_warning}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_warning}}}{\emph{warning}}{}
3285 Add a warning to the out stream (in case of file generation)
3286 \begin{quote}\begin{description}
3287 \item[{Parameters}] \leavevmode
3288 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{warning}}) \textendash{} the warning to add
3290 \end{description}\end{quote}
3294 \index{append() (src.environment.SalomeEnviron method)}
3296 \begin{fulllineitems}
3297 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.append}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
3298 append value to key using sep
3299 \begin{quote}\begin{description}
3300 \item[{Parameters}] \leavevmode\begin{itemize}
3302 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to append
3305 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to append to key
3308 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
3312 \end{description}\end{quote}
3316 \index{dump() (src.environment.SalomeEnviron method)}
3318 \begin{fulllineitems}
3319 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.dump}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{dump}}}{\emph{out}}{}
3320 Write the environment to out
3321 \begin{quote}\begin{description}
3322 \item[{Parameters}] \leavevmode
3323 \sphinxstyleliteralstrong{\sphinxupquote{file}} (\sphinxstyleliteralemphasis{\sphinxupquote{out}}) \textendash{} the stream where to write the environment
3325 \end{description}\end{quote}
3329 \index{finish() (src.environment.SalomeEnviron method)}
3331 \begin{fulllineitems}
3332 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.finish}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{finish}}}{\emph{required}}{}
3333 Add a final instruction in the out file (in case of file generation)
3334 \begin{quote}\begin{description}
3335 \item[{Parameters}] \leavevmode
3336 \sphinxstyleliteralstrong{\sphinxupquote{bool}} (\sphinxstyleliteralemphasis{\sphinxupquote{required}}) \textendash{} Do nothing if required is False
3338 \end{description}\end{quote}
3342 \index{get() (src.environment.SalomeEnviron method)}
3344 \begin{fulllineitems}
3345 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.get}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get}}}{\emph{key}}{}
3346 Get the value of the environment variable “key”
3347 \begin{quote}\begin{description}
3348 \item[{Parameters}] \leavevmode
3349 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable
3351 \end{description}\end{quote}
3355 \index{get\_names() (src.environment.SalomeEnviron method)}
3357 \begin{fulllineitems}
3358 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.get_names}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get\_names}}}{\emph{lProducts}}{}
3359 Get the products name to add in SALOME\_MODULES environment variable
3360 It is the name of the product, except in the case where the is a
3361 component name. And it has to be in SALOME\_MODULES variable only
3362 if the product has the property has\_salome\_hui = “yes”
3363 \begin{quote}\begin{description}
3364 \item[{Parameters}] \leavevmode
3365 \sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{lProducts}}) \textendash{} List of products to potentially add
3367 \end{description}\end{quote}
3371 \index{is\_defined() (src.environment.SalomeEnviron method)}
3373 \begin{fulllineitems}
3374 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.is_defined}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{is\_defined}}}{\emph{key}}{}
3375 Check if the key exists in the environment
3376 \begin{quote}\begin{description}
3377 \item[{Parameters}] \leavevmode
3378 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable to check
3380 \end{description}\end{quote}
3384 \index{load\_cfg\_environment() (src.environment.SalomeEnviron method)}
3386 \begin{fulllineitems}
3387 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.load_cfg_environment}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{load\_cfg\_environment}}}{\emph{cfg\_env}}{}
3388 Loads environment defined in cfg\_env
3389 \begin{quote}\begin{description}
3390 \item[{Parameters}] \leavevmode
3391 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{cfg\_env}}) \textendash{} A config containing an environment
3393 \end{description}\end{quote}
3397 \index{prepend() (src.environment.SalomeEnviron method)}
3399 \begin{fulllineitems}
3400 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.prepend}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepend}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
3401 prepend value to key using sep
3402 \begin{quote}\begin{description}
3403 \item[{Parameters}] \leavevmode\begin{itemize}
3405 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to prepend
3408 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to prepend to key
3411 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
3415 \end{description}\end{quote}
3419 \index{run\_env\_script() (src.environment.SalomeEnviron method)}
3421 \begin{fulllineitems}
3422 \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}}{}
3423 Runs an environment script.
3424 \begin{quote}\begin{description}
3425 \item[{Parameters}] \leavevmode\begin{itemize}
3427 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The product description
3430 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to display messages
3433 \sphinxstyleliteralstrong{\sphinxupquote{Boolean}} (\sphinxstyleliteralemphasis{\sphinxupquote{native}}) \textendash{} if True load set\_native\_env instead of set\_env
3437 \end{description}\end{quote}
3441 \index{run\_simple\_env\_script() (src.environment.SalomeEnviron method)}
3443 \begin{fulllineitems}
3444 \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}}{}
3445 Runs an environment script. Same as run\_env\_script, but with a
3446 script path as parameter.
3447 \begin{quote}\begin{description}
3448 \item[{Parameters}] \leavevmode\begin{itemize}
3450 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{script\_path}}) \textendash{} a path to an environment script
3453 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to display messages
3457 \end{description}\end{quote}
3461 \index{set() (src.environment.SalomeEnviron method)}
3463 \begin{fulllineitems}
3464 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.set}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set}}}{\emph{key}, \emph{value}}{}
3465 Set the environment variable “key” to value “value”
3466 \begin{quote}\begin{description}
3467 \item[{Parameters}] \leavevmode\begin{itemize}
3469 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the environment variable to set
3472 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value
3476 \end{description}\end{quote}
3480 \index{set\_a\_product() (src.environment.SalomeEnviron method)}
3482 \begin{fulllineitems}
3483 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.set_a_product}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_a\_product}}}{\emph{product}, \emph{logger}}{}
3484 Sets the environment of a product.
3485 \begin{quote}\begin{description}
3486 \item[{Parameters}] \leavevmode\begin{itemize}
3488 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{product}}) \textendash{} The product name
3491 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to display messages
3495 \end{description}\end{quote}
3499 \index{set\_application\_env() (src.environment.SalomeEnviron method)}
3501 \begin{fulllineitems}
3502 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.set_application_env}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_application\_env}}}{\emph{logger}}{}
3503 Sets the environment defined in the APPLICATION file.
3504 \begin{quote}\begin{description}
3505 \item[{Parameters}] \leavevmode
3506 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to display messages
3508 \end{description}\end{quote}
3512 \index{set\_cpp\_env() (src.environment.SalomeEnviron method)}
3514 \begin{fulllineitems}
3515 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.set_cpp_env}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_cpp\_env}}}{\emph{product\_info}}{}
3516 Sets the generic environment for a SALOME cpp product.
3517 \begin{quote}\begin{description}
3518 \item[{Parameters}] \leavevmode
3519 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The product description
3521 \end{description}\end{quote}
3525 \index{set\_full\_environ() (src.environment.SalomeEnviron method)}
3527 \begin{fulllineitems}
3528 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.set_full_environ}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_full\_environ}}}{\emph{logger}, \emph{env\_info}}{}
3529 Sets the full environment for products
3530 specified in env\_info dictionary.
3531 \begin{quote}\begin{description}
3532 \item[{Parameters}] \leavevmode\begin{itemize}
3534 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to display messages
3537 \sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{env\_info}}) \textendash{} the list of products
3541 \end{description}\end{quote}
3545 \index{set\_products() (src.environment.SalomeEnviron method)}
3547 \begin{fulllineitems}
3548 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.set_products}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_products}}}{\emph{logger}, \emph{src\_root=None}}{}
3549 Sets the environment for all the products.
3550 \begin{quote}\begin{description}
3551 \item[{Parameters}] \leavevmode\begin{itemize}
3553 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to display messages
3556 \sphinxstyleliteralstrong{\sphinxupquote{src}} (\sphinxstyleliteralemphasis{\sphinxupquote{src\_root}}) \textendash{} the application working directory
3560 \end{description}\end{quote}
3564 \index{set\_python\_libdirs() (src.environment.SalomeEnviron method)}
3566 \begin{fulllineitems}
3567 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.set_python_libdirs}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_python\_libdirs}}}{}{}
3568 Set some generic variables for python library paths
3572 \index{set\_salome\_generic\_product\_env() (src.environment.SalomeEnviron method)}
3574 \begin{fulllineitems}
3575 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.set_salome_generic_product_env}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_salome\_generic\_product\_env}}}{\emph{pi}}{}
3576 Sets the generic environment for a SALOME product.
3577 \begin{quote}\begin{description}
3578 \item[{Parameters}] \leavevmode
3579 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{pi}}) \textendash{} The product description
3581 \end{description}\end{quote}
3585 \index{set\_salome\_minimal\_product\_env() (src.environment.SalomeEnviron method)}
3587 \begin{fulllineitems}
3588 \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}}{}
3589 Sets the minimal environment for a SALOME product.
3590 xxx\_ROOT\_DIR and xxx\_SRC\_DIR
3591 \begin{quote}\begin{description}
3592 \item[{Parameters}] \leavevmode\begin{itemize}
3594 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The product description
3597 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to display messages
3601 \end{description}\end{quote}
3608 \index{Shell (class in src.environment)}
3610 \begin{fulllineitems}
3611 \phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Shell}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.environment.}}\sphinxbfcode{\sphinxupquote{Shell}}}{\emph{name}, \emph{extension}}{}
3612 Definition of a Shell.
3616 \index{load\_environment() (in module src.environment)}
3618 \begin{fulllineitems}
3619 \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}}{}
3620 Loads the environment (used to run the tests, for example).
3621 \begin{quote}\begin{description}
3622 \item[{Parameters}] \leavevmode\begin{itemize}
3624 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} the global config
3627 \sphinxstyleliteralstrong{\sphinxupquote{bool}} (\sphinxstyleliteralemphasis{\sphinxupquote{build}}) \textendash{} build environement if True
3630 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to display messages
3634 \end{description}\end{quote}
3640 \subsubsection{src.fileEnviron module}
3641 \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)}
3643 \begin{fulllineitems}
3644 \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}}{}
3645 Bases: {\hyperref[\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.fileEnviron.FileEnviron}}}}} (\autopageref*{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron}})
3647 Class for bash shell.
3648 \index{command\_value() (src.fileEnviron.BashFileEnviron method)}
3650 \begin{fulllineitems}
3651 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.BashFileEnviron.command_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{command\_value}}}{\emph{key}, \emph{command}}{}
3652 Get the value given by the system command “command”
3653 and put it in the environment variable key.
3654 Has to be overwritten in the derived classes
3655 This can be seen as a virtual method
3656 \begin{quote}\begin{description}
3657 \item[{Parameters}] \leavevmode\begin{itemize}
3659 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{command}}) \textendash{} the environment variable
3662 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the command to execute
3666 \end{description}\end{quote}
3670 \index{finish() (src.fileEnviron.BashFileEnviron method)}
3672 \begin{fulllineitems}
3673 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.BashFileEnviron.finish}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{finish}}}{\emph{required=True}}{}
3674 Add a final instruction in the out file (in case of file generation)
3675 \begin{quote}\begin{description}
3676 \item[{Parameters}] \leavevmode
3677 \sphinxstyleliteralstrong{\sphinxupquote{bool}} (\sphinxstyleliteralemphasis{\sphinxupquote{required}}) \textendash{} Do nothing if required is False
3679 \end{description}\end{quote}
3683 \index{set() (src.fileEnviron.BashFileEnviron method)}
3685 \begin{fulllineitems}
3686 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.BashFileEnviron.set}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set}}}{\emph{key}, \emph{value}}{}
3687 Set the environment variable “key” to value “value”
3688 \begin{quote}\begin{description}
3689 \item[{Parameters}] \leavevmode\begin{itemize}
3691 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the environment variable to set
3694 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value
3698 \end{description}\end{quote}
3705 \index{BatFileEnviron (class in src.fileEnviron)}
3707 \begin{fulllineitems}
3708 \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}}{}
3709 Bases: {\hyperref[\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.fileEnviron.FileEnviron}}}}} (\autopageref*{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron}})
3711 for Windows batch shell.
3712 \index{add\_comment() (src.fileEnviron.BatFileEnviron method)}
3714 \begin{fulllineitems}
3715 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.BatFileEnviron.add_comment}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_comment}}}{\emph{comment}}{}
3716 Add a comment in the shell file
3717 \begin{quote}\begin{description}
3718 \item[{Parameters}] \leavevmode
3719 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{comment}}) \textendash{} the comment to add
3721 \end{description}\end{quote}
3725 \index{command\_value() (src.fileEnviron.BatFileEnviron method)}
3727 \begin{fulllineitems}
3728 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.BatFileEnviron.command_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{command\_value}}}{\emph{key}, \emph{command}}{}
3729 Get the value given by the system command “command”
3730 and put it in the environment variable key.
3731 Has to be overwritten in the derived classes
3732 This can be seen as a virtual method
3733 \begin{quote}\begin{description}
3734 \item[{Parameters}] \leavevmode\begin{itemize}
3736 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{command}}) \textendash{} the environment variable
3739 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the command to execute
3743 \end{description}\end{quote}
3747 \index{finish() (src.fileEnviron.BatFileEnviron method)}
3749 \begin{fulllineitems}
3750 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.BatFileEnviron.finish}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{finish}}}{\emph{required=True}}{}
3751 Add a final instruction in the out file (in case of file generation)
3752 In the particular windows case, do nothing
3753 \begin{quote}\begin{description}
3754 \item[{Parameters}] \leavevmode
3755 \sphinxstyleliteralstrong{\sphinxupquote{bool}} (\sphinxstyleliteralemphasis{\sphinxupquote{required}}) \textendash{} Do nothing if required is False
3757 \end{description}\end{quote}
3761 \index{get() (src.fileEnviron.BatFileEnviron method)}
3763 \begin{fulllineitems}
3764 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.BatFileEnviron.get}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get}}}{\emph{key}}{}
3765 Get the value of the environment variable “key”
3766 \begin{quote}\begin{description}
3767 \item[{Parameters}] \leavevmode
3768 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable
3770 \end{description}\end{quote}
3774 \index{set() (src.fileEnviron.BatFileEnviron method)}
3776 \begin{fulllineitems}
3777 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.BatFileEnviron.set}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set}}}{\emph{key}, \emph{value}}{}
3778 Set the environment variable “key” to value “value”
3779 \begin{quote}\begin{description}
3780 \item[{Parameters}] \leavevmode\begin{itemize}
3782 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the environment variable to set
3785 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value
3789 \end{description}\end{quote}
3796 \index{ContextFileEnviron (class in src.fileEnviron)}
3798 \begin{fulllineitems}
3799 \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}}{}
3800 Bases: {\hyperref[\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.fileEnviron.FileEnviron}}}}} (\autopageref*{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron}})
3802 Class for a salome context configuration file.
3803 \index{add\_echo() (src.fileEnviron.ContextFileEnviron method)}
3805 \begin{fulllineitems}
3806 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.add_echo}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_echo}}}{\emph{text}}{}
3808 \begin{quote}\begin{description}
3809 \item[{Parameters}] \leavevmode
3810 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{text}}) \textendash{} the comment to add
3812 \end{description}\end{quote}
3816 \index{add\_warning() (src.fileEnviron.ContextFileEnviron method)}
3818 \begin{fulllineitems}
3819 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.add_warning}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_warning}}}{\emph{warning}}{}
3821 \begin{quote}\begin{description}
3822 \item[{Parameters}] \leavevmode
3823 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{text}}) \textendash{} the warning to add
3825 \end{description}\end{quote}
3829 \index{append\_value() (src.fileEnviron.ContextFileEnviron method)}
3831 \begin{fulllineitems}
3832 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.append_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append\_value}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
3833 append value to key using sep
3834 \begin{quote}\begin{description}
3835 \item[{Parameters}] \leavevmode\begin{itemize}
3837 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to append
3840 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to append to key
3843 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
3847 \end{description}\end{quote}
3851 \index{command\_value() (src.fileEnviron.ContextFileEnviron method)}
3853 \begin{fulllineitems}
3854 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.command_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{command\_value}}}{\emph{key}, \emph{command}}{}
3855 Get the value given by the system command “command”
3856 and put it in the environment variable key.
3857 Has to be overwritten in the derived classes
3858 This can be seen as a virtual method
3859 \begin{quote}\begin{description}
3860 \item[{Parameters}] \leavevmode\begin{itemize}
3862 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{command}}) \textendash{} the environment variable
3865 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the command to execute
3869 \end{description}\end{quote}
3873 \index{finish() (src.fileEnviron.ContextFileEnviron method)}
3875 \begin{fulllineitems}
3876 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.finish}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{finish}}}{\emph{required=True}}{}
3877 Add a final instruction in the out file (in case of file generation)
3878 \begin{quote}\begin{description}
3879 \item[{Parameters}] \leavevmode
3880 \sphinxstyleliteralstrong{\sphinxupquote{bool}} (\sphinxstyleliteralemphasis{\sphinxupquote{required}}) \textendash{} Do nothing if required is False
3882 \end{description}\end{quote}
3886 \index{get() (src.fileEnviron.ContextFileEnviron method)}
3888 \begin{fulllineitems}
3889 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.get}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get}}}{\emph{key}}{}
3890 Get the value of the environment variable “key”
3891 \begin{quote}\begin{description}
3892 \item[{Parameters}] \leavevmode
3893 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable
3895 \end{description}\end{quote}
3899 \index{prepend\_value() (src.fileEnviron.ContextFileEnviron method)}
3901 \begin{fulllineitems}
3902 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.prepend_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepend\_value}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
3903 prepend value to key using sep
3904 \begin{quote}\begin{description}
3905 \item[{Parameters}] \leavevmode\begin{itemize}
3907 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to prepend
3910 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to prepend to key
3913 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
3917 \end{description}\end{quote}
3921 \index{set() (src.fileEnviron.ContextFileEnviron method)}
3923 \begin{fulllineitems}
3924 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.set}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set}}}{\emph{key}, \emph{value}}{}
3925 Set the environment variable “key” to value “value”
3926 \begin{quote}\begin{description}
3927 \item[{Parameters}] \leavevmode\begin{itemize}
3929 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the environment variable to set
3932 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value
3936 \end{description}\end{quote}
3943 \index{FileEnviron (class in src.fileEnviron)}
3945 \begin{fulllineitems}
3946 \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}}{}
3947 Bases: \sphinxcode{\sphinxupquote{object}}
3949 Base class for shell environment
3950 \index{add\_comment() (src.fileEnviron.FileEnviron method)}
3952 \begin{fulllineitems}
3953 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.add_comment}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_comment}}}{\emph{comment}}{}
3954 Add a comment in the shell file
3955 \begin{quote}\begin{description}
3956 \item[{Parameters}] \leavevmode
3957 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{comment}}) \textendash{} the comment to add
3959 \end{description}\end{quote}
3963 \index{add\_echo() (src.fileEnviron.FileEnviron method)}
3965 \begin{fulllineitems}
3966 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.add_echo}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_echo}}}{\emph{text}}{}
3967 Add a “echo” in the shell file
3968 \begin{quote}\begin{description}
3969 \item[{Parameters}] \leavevmode
3970 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{text}}) \textendash{} the text to echo
3972 \end{description}\end{quote}
3976 \index{add\_line() (src.fileEnviron.FileEnviron method)}
3978 \begin{fulllineitems}
3979 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.add_line}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_line}}}{\emph{number}}{}
3980 Add some empty lines in the shell file
3981 \begin{quote}\begin{description}
3982 \item[{Parameters}] \leavevmode
3983 \sphinxstyleliteralstrong{\sphinxupquote{int}} (\sphinxstyleliteralemphasis{\sphinxupquote{number}}) \textendash{} the number of lines to add
3985 \end{description}\end{quote}
3989 \index{add\_warning() (src.fileEnviron.FileEnviron method)}
3991 \begin{fulllineitems}
3992 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.add_warning}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_warning}}}{\emph{warning}}{}
3993 Add a warning “echo” in the shell file
3994 \begin{quote}\begin{description}
3995 \item[{Parameters}] \leavevmode
3996 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{warning}}) \textendash{} the text to echo
3998 \end{description}\end{quote}
4002 \index{append() (src.fileEnviron.FileEnviron method)}
4004 \begin{fulllineitems}
4005 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.append}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
4006 Same as append\_value but the value argument can be a list
4007 \begin{quote}\begin{description}
4008 \item[{Parameters}] \leavevmode\begin{itemize}
4010 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to append
4013 \sphinxstyleliteralstrong{\sphinxupquote{str}}\sphinxstyleliteralstrong{\sphinxupquote{ or }}\sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the value(s) to append to key
4016 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
4020 \end{description}\end{quote}
4024 \index{append\_value() (src.fileEnviron.FileEnviron method)}
4026 \begin{fulllineitems}
4027 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.append_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append\_value}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
4028 append value to key using sep
4029 \begin{quote}\begin{description}
4030 \item[{Parameters}] \leavevmode\begin{itemize}
4032 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to append
4035 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to append to key
4038 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
4042 \end{description}\end{quote}
4046 \index{command\_value() (src.fileEnviron.FileEnviron method)}
4048 \begin{fulllineitems}
4049 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.command_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{command\_value}}}{\emph{key}, \emph{command}}{}
4050 Get the value given by the system command “command”
4051 and put it in the environment variable key.
4052 Has to be overwritten in the derived classes
4053 This can be seen as a virtual method
4054 \begin{quote}\begin{description}
4055 \item[{Parameters}] \leavevmode\begin{itemize}
4057 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{command}}) \textendash{} the environment variable
4060 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the command to execute
4064 \end{description}\end{quote}
4068 \index{finish() (src.fileEnviron.FileEnviron method)}
4070 \begin{fulllineitems}
4071 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.finish}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{finish}}}{\emph{required=True}}{}
4072 Add a final instruction in the out file (in case of file generation)
4073 \begin{quote}\begin{description}
4074 \item[{Parameters}] \leavevmode
4075 \sphinxstyleliteralstrong{\sphinxupquote{bool}} (\sphinxstyleliteralemphasis{\sphinxupquote{required}}) \textendash{} Do nothing if required is False
4077 \end{description}\end{quote}
4081 \index{get() (src.fileEnviron.FileEnviron method)}
4083 \begin{fulllineitems}
4084 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.get}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get}}}{\emph{key}}{}
4085 Get the value of the environment variable “key”
4086 \begin{quote}\begin{description}
4087 \item[{Parameters}] \leavevmode
4088 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable
4090 \end{description}\end{quote}
4094 \index{is\_defined() (src.fileEnviron.FileEnviron method)}
4096 \begin{fulllineitems}
4097 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.is_defined}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{is\_defined}}}{\emph{key}}{}
4098 Check if the key exists in the environment
4099 \begin{quote}\begin{description}
4100 \item[{Parameters}] \leavevmode
4101 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable to check
4103 \end{description}\end{quote}
4107 \index{prepend() (src.fileEnviron.FileEnviron method)}
4109 \begin{fulllineitems}
4110 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.prepend}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepend}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
4111 Same as prepend\_value but the value argument can be a list
4112 \begin{quote}\begin{description}
4113 \item[{Parameters}] \leavevmode\begin{itemize}
4115 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to prepend
4118 \sphinxstyleliteralstrong{\sphinxupquote{str}}\sphinxstyleliteralstrong{\sphinxupquote{ or }}\sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the value(s) to prepend to key
4121 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
4125 \end{description}\end{quote}
4129 \index{prepend\_value() (src.fileEnviron.FileEnviron method)}
4131 \begin{fulllineitems}
4132 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.prepend_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepend\_value}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
4133 prepend value to key using sep
4134 \begin{quote}\begin{description}
4135 \item[{Parameters}] \leavevmode\begin{itemize}
4137 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to prepend
4140 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to prepend to key
4143 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
4147 \end{description}\end{quote}
4151 \index{set() (src.fileEnviron.FileEnviron method)}
4153 \begin{fulllineitems}
4154 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.set}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set}}}{\emph{key}, \emph{value}}{}
4155 Set the environment variable ‘key’ to value ‘value’
4156 \begin{quote}\begin{description}
4157 \item[{Parameters}] \leavevmode\begin{itemize}
4159 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the environment variable to set
4162 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value
4166 \end{description}\end{quote}
4173 \index{LauncherFileEnviron (class in src.fileEnviron)}
4175 \begin{fulllineitems}
4176 \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}}{}
4177 Class to generate a launcher file script
4178 (in python syntax) SalomeContext API
4179 \index{add() (src.fileEnviron.LauncherFileEnviron method)}
4181 \begin{fulllineitems}
4182 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.add}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add}}}{\emph{key}, \emph{value}}{}
4183 prepend value to key using sep
4184 \begin{quote}\begin{description}
4185 \item[{Parameters}] \leavevmode\begin{itemize}
4187 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the environment variable to prepend
4190 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to prepend to key
4194 \end{description}\end{quote}
4198 \index{add\_comment() (src.fileEnviron.LauncherFileEnviron method)}
4200 \begin{fulllineitems}
4201 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.add_comment}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_comment}}}{\emph{comment}}{}
4204 \index{add\_echo() (src.fileEnviron.LauncherFileEnviron method)}
4206 \begin{fulllineitems}
4207 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.add_echo}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_echo}}}{\emph{text}}{}
4209 \begin{quote}\begin{description}
4210 \item[{Parameters}] \leavevmode
4211 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{text}}) \textendash{} the comment to add
4213 \end{description}\end{quote}
4217 \index{add\_line() (src.fileEnviron.LauncherFileEnviron method)}
4219 \begin{fulllineitems}
4220 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.add_line}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_line}}}{\emph{number}}{}
4221 Add some empty lines in the launcher file
4222 \begin{quote}\begin{description}
4223 \item[{Parameters}] \leavevmode
4224 \sphinxstyleliteralstrong{\sphinxupquote{int}} (\sphinxstyleliteralemphasis{\sphinxupquote{number}}) \textendash{} the number of lines to add
4226 \end{description}\end{quote}
4230 \index{add\_warning() (src.fileEnviron.LauncherFileEnviron method)}
4232 \begin{fulllineitems}
4233 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.add_warning}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_warning}}}{\emph{warning}}{}
4235 \begin{quote}\begin{description}
4236 \item[{Parameters}] \leavevmode
4237 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{text}}) \textendash{} the warning to add
4239 \end{description}\end{quote}
4243 \index{append() (src.fileEnviron.LauncherFileEnviron method)}
4245 \begin{fulllineitems}
4246 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.append}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
4247 Same as append\_value but the value argument can be a list
4248 \begin{quote}\begin{description}
4249 \item[{Parameters}] \leavevmode\begin{itemize}
4251 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to append
4254 \sphinxstyleliteralstrong{\sphinxupquote{str}}\sphinxstyleliteralstrong{\sphinxupquote{ or }}\sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the value(s) to append to key
4257 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
4261 \end{description}\end{quote}
4265 \index{append\_value() (src.fileEnviron.LauncherFileEnviron method)}
4267 \begin{fulllineitems}
4268 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.append_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append\_value}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
4269 append value to key using sep
4270 \begin{quote}\begin{description}
4271 \item[{Parameters}] \leavevmode\begin{itemize}
4273 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to append
4276 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to append to key
4279 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
4283 \end{description}\end{quote}
4287 \index{change\_to\_launcher() (src.fileEnviron.LauncherFileEnviron method)}
4289 \begin{fulllineitems}
4290 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.change_to_launcher}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{change\_to\_launcher}}}{\emph{value}}{}
4293 \index{command\_value() (src.fileEnviron.LauncherFileEnviron method)}
4295 \begin{fulllineitems}
4296 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.command_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{command\_value}}}{\emph{key}, \emph{command}}{}
4297 Get the value given by the system command “command”
4298 and put it in the environment variable key.
4299 \begin{quote}\begin{description}
4300 \item[{Parameters}] \leavevmode\begin{itemize}
4302 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{command}}) \textendash{} the environment variable
4305 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the command to execute
4309 \end{description}\end{quote}
4313 \index{finish() (src.fileEnviron.LauncherFileEnviron method)}
4315 \begin{fulllineitems}
4316 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.finish}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{finish}}}{\emph{required=True}}{}
4317 Add a final instruction in the out file (in case of file generation)
4318 In the particular launcher case, do nothing
4319 \begin{quote}\begin{description}
4320 \item[{Parameters}] \leavevmode
4321 \sphinxstyleliteralstrong{\sphinxupquote{bool}} (\sphinxstyleliteralemphasis{\sphinxupquote{required}}) \textendash{} Do nothing if required is False
4323 \end{description}\end{quote}
4327 \index{get() (src.fileEnviron.LauncherFileEnviron method)}
4329 \begin{fulllineitems}
4330 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.get}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get}}}{\emph{key}}{}
4331 Get the value of the environment variable “key”
4332 \begin{quote}\begin{description}
4333 \item[{Parameters}] \leavevmode
4334 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable
4336 \end{description}\end{quote}
4340 \index{is\_defined() (src.fileEnviron.LauncherFileEnviron method)}
4342 \begin{fulllineitems}
4343 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.is_defined}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{is\_defined}}}{\emph{key}}{}
4344 Check if the key exists in the environment
4345 \begin{quote}\begin{description}
4346 \item[{Parameters}] \leavevmode
4347 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable to check
4349 \end{description}\end{quote}
4353 \index{prepend() (src.fileEnviron.LauncherFileEnviron method)}
4355 \begin{fulllineitems}
4356 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.prepend}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepend}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
4357 Same as prepend\_value but the value argument can be a list
4358 \begin{quote}\begin{description}
4359 \item[{Parameters}] \leavevmode\begin{itemize}
4361 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to prepend
4364 \sphinxstyleliteralstrong{\sphinxupquote{str}}\sphinxstyleliteralstrong{\sphinxupquote{ or }}\sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the value(s) to prepend to key
4367 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
4371 \end{description}\end{quote}
4375 \index{prepend\_value() (src.fileEnviron.LauncherFileEnviron method)}
4377 \begin{fulllineitems}
4378 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.prepend_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepend\_value}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{}
4379 prepend value to key using sep
4380 \begin{quote}\begin{description}
4381 \item[{Parameters}] \leavevmode\begin{itemize}
4383 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to prepend
4386 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to prepend to key
4389 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
4393 \end{description}\end{quote}
4397 \index{set() (src.fileEnviron.LauncherFileEnviron method)}
4399 \begin{fulllineitems}
4400 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.set}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set}}}{\emph{key}, \emph{value}}{}
4401 Set the environment variable “key” to value “value”
4402 \begin{quote}\begin{description}
4403 \item[{Parameters}] \leavevmode\begin{itemize}
4405 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the environment variable to set
4408 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value
4412 \end{description}\end{quote}
4419 \index{ScreenEnviron (class in src.fileEnviron)}
4421 \begin{fulllineitems}
4422 \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}}{}
4423 Bases: {\hyperref[\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.fileEnviron.FileEnviron}}}}} (\autopageref*{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron}})
4424 \index{add\_comment() (src.fileEnviron.ScreenEnviron method)}
4426 \begin{fulllineitems}
4427 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.add_comment}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_comment}}}{\emph{comment}}{}
4428 Add a comment in the shell file
4429 \begin{quote}\begin{description}
4430 \item[{Parameters}] \leavevmode
4431 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{comment}}) \textendash{} the comment to add
4433 \end{description}\end{quote}
4437 \index{add\_echo() (src.fileEnviron.ScreenEnviron method)}
4439 \begin{fulllineitems}
4440 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.add_echo}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_echo}}}{\emph{text}}{}
4441 Add a “echo” in the shell file
4442 \begin{quote}\begin{description}
4443 \item[{Parameters}] \leavevmode
4444 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{text}}) \textendash{} the text to echo
4446 \end{description}\end{quote}
4450 \index{add\_line() (src.fileEnviron.ScreenEnviron method)}
4452 \begin{fulllineitems}
4453 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.add_line}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_line}}}{\emph{number}}{}
4454 Add some empty lines in the shell file
4455 \begin{quote}\begin{description}
4456 \item[{Parameters}] \leavevmode
4457 \sphinxstyleliteralstrong{\sphinxupquote{int}} (\sphinxstyleliteralemphasis{\sphinxupquote{number}}) \textendash{} the number of lines to add
4459 \end{description}\end{quote}
4463 \index{add\_warning() (src.fileEnviron.ScreenEnviron method)}
4465 \begin{fulllineitems}
4466 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.add_warning}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_warning}}}{\emph{warning}}{}
4467 Add a warning “echo” in the shell file
4468 \begin{quote}\begin{description}
4469 \item[{Parameters}] \leavevmode
4470 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{warning}}) \textendash{} the text to echo
4472 \end{description}\end{quote}
4476 \index{append() (src.fileEnviron.ScreenEnviron method)}
4478 \begin{fulllineitems}
4479 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.append}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append}}}{\emph{name}, \emph{value}, \emph{sep=':'}}{}
4480 Same as append\_value but the value argument can be a list
4481 \begin{quote}\begin{description}
4482 \item[{Parameters}] \leavevmode\begin{itemize}
4484 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to append
4487 \sphinxstyleliteralstrong{\sphinxupquote{str}}\sphinxstyleliteralstrong{\sphinxupquote{ or }}\sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the value(s) to append to key
4490 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
4494 \end{description}\end{quote}
4498 \index{command\_value() (src.fileEnviron.ScreenEnviron method)}
4500 \begin{fulllineitems}
4501 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.command_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{command\_value}}}{\emph{key}, \emph{command}}{}
4502 Get the value given by the system command “command”
4503 and put it in the environment variable key.
4504 Has to be overwritten in the derived classes
4505 This can be seen as a virtual method
4506 \begin{quote}\begin{description}
4507 \item[{Parameters}] \leavevmode\begin{itemize}
4509 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{command}}) \textendash{} the environment variable
4512 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the command to execute
4516 \end{description}\end{quote}
4520 \index{get() (src.fileEnviron.ScreenEnviron method)}
4522 \begin{fulllineitems}
4523 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.get}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get}}}{\emph{name}}{}
4524 Get the value of the environment variable “key”
4525 \begin{quote}\begin{description}
4526 \item[{Parameters}] \leavevmode
4527 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable
4529 \end{description}\end{quote}
4533 \index{is\_defined() (src.fileEnviron.ScreenEnviron method)}
4535 \begin{fulllineitems}
4536 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.is_defined}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{is\_defined}}}{\emph{name}}{}
4537 Check if the key exists in the environment
4538 \begin{quote}\begin{description}
4539 \item[{Parameters}] \leavevmode
4540 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable to check
4542 \end{description}\end{quote}
4546 \index{prepend() (src.fileEnviron.ScreenEnviron method)}
4548 \begin{fulllineitems}
4549 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.prepend}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepend}}}{\emph{name}, \emph{value}, \emph{sep=':'}}{}
4550 Same as prepend\_value but the value argument can be a list
4551 \begin{quote}\begin{description}
4552 \item[{Parameters}] \leavevmode\begin{itemize}
4554 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to prepend
4557 \sphinxstyleliteralstrong{\sphinxupquote{str}}\sphinxstyleliteralstrong{\sphinxupquote{ or }}\sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the value(s) to prepend to key
4560 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string
4564 \end{description}\end{quote}
4568 \index{run\_env\_script() (src.fileEnviron.ScreenEnviron method)}
4570 \begin{fulllineitems}
4571 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.run_env_script}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{run\_env\_script}}}{\emph{module}, \emph{script}}{}
4574 \index{set() (src.fileEnviron.ScreenEnviron method)}
4576 \begin{fulllineitems}
4577 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.set}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set}}}{\emph{name}, \emph{value}}{}
4578 Set the environment variable ‘key’ to value ‘value’
4579 \begin{quote}\begin{description}
4580 \item[{Parameters}] \leavevmode\begin{itemize}
4582 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the environment variable to set
4585 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value
4589 \end{description}\end{quote}
4593 \index{write() (src.fileEnviron.ScreenEnviron method)}
4595 \begin{fulllineitems}
4596 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.write}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{write}}}{\emph{command}, \emph{name}, \emph{value}, \emph{sign='='}}{}
4602 \index{get\_file\_environ() (in module src.fileEnviron)}
4604 \begin{fulllineitems}
4605 \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}}{}
4606 Instantiate correct FileEnvironment sub-class.
4607 \begin{quote}\begin{description}
4608 \item[{Parameters}] \leavevmode\begin{itemize}
4610 \sphinxstyleliteralstrong{\sphinxupquote{file}} (\sphinxstyleliteralemphasis{\sphinxupquote{output}}) \textendash{} the output file stream.
4613 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{shell}}) \textendash{} the type of shell syntax to use.
4616 \sphinxstyleliteralstrong{\sphinxupquote{dict}} (\sphinxstyleliteralemphasis{\sphinxupquote{environ}}) \textendash{} a potential additional environment.
4620 \end{description}\end{quote}
4624 \index{special\_path\_separator() (in module src.fileEnviron)}
4626 \begin{fulllineitems}
4627 \phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.special_path_separator}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.fileEnviron.}}\sphinxbfcode{\sphinxupquote{special\_path\_separator}}}{\emph{name}}{}
4628 TCLLIBPATH, TKLIBPATH, PV\_PLUGIN\_PATH environments variables need
4629 some exotic path separator.
4630 This function gives the separator regarding the name of the variable
4631 to append or prepend.
4632 \begin{quote}\begin{description}
4633 \item[{Parameters}] \leavevmode
4634 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{name}}) \textendash{} The name of the variable to find the separator
4636 \end{description}\end{quote}
4642 \subsubsection{src.fork module}
4643 \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)}
4645 \begin{fulllineitems}
4646 \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}}{}
4649 \index{batch\_salome() (in module src.fork)}
4651 \begin{fulllineitems}
4652 \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}}{}
4655 \index{launch\_command() (in module src.fork)}
4657 \begin{fulllineitems}
4658 \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}}{}
4661 \index{show\_progress() (in module src.fork)}
4663 \begin{fulllineitems}
4664 \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=''}}{}
4665 shortcut function to display the progression
4666 \begin{quote}\begin{description}
4667 \item[{Parameters}] \leavevmode\begin{itemize}
4669 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logging instance
4672 \sphinxstyleliteralstrong{\sphinxupquote{int}} (\sphinxstyleliteralemphasis{\sphinxupquote{delai}}) \textendash{} the number to display
4675 \sphinxstyleliteralstrong{\sphinxupquote{int}} \textendash{} the number max
4678 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{ss}}) \textendash{} the string to display
4682 \end{description}\end{quote}
4686 \index{write\_back() (in module src.fork)}
4688 \begin{fulllineitems}
4689 \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}}{}
4690 shortcut function to write at the begin of the line
4691 \begin{quote}\begin{description}
4692 \item[{Parameters}] \leavevmode\begin{itemize}
4694 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logging instance
4697 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{message}}) \textendash{} the text to display
4700 \sphinxstyleliteralstrong{\sphinxupquote{int}} (\sphinxstyleliteralemphasis{\sphinxupquote{level}}) \textendash{} the level of verbosity
4704 \end{description}\end{quote}
4710 \subsubsection{src.logger module}
4711 \label{\detokenize{commands/apidoc/src:module-src.logger}}\label{\detokenize{commands/apidoc/src:src-logger-module}}\index{src.logger (module)}
4712 Implements the classes and method relative to the logging
4713 \index{Logger (class in src.logger)}
4715 \begin{fulllineitems}
4716 \phantomsection\label{\detokenize{commands/apidoc/src:src.logger.Logger}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.logger.}}\sphinxbfcode{\sphinxupquote{Logger}}}{\emph{config=None}, \emph{silent\_sysstd=False}, \emph{all\_in\_terminal=False}, \emph{micro\_command=False}}{}
4717 Bases: \sphinxcode{\sphinxupquote{object}}
4719 Class to handle log mechanism.
4720 \index{add\_link() (src.logger.Logger method)}
4722 \begin{fulllineitems}
4723 \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}}{}
4724 Add a link to another log file.
4725 \begin{quote}\begin{description}
4726 \item[{Parameters}] \leavevmode\begin{itemize}
4728 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{command\_res}}) \textendash{} The file name of the link.
4731 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The name of the command linked.
4734 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The result of the command linked. “0” or “1”
4738 \item[{Parma full\_launched\_command str}] \leavevmode
4739 The full lanch command
4742 \end{description}\end{quote}
4746 \index{end\_write() (src.logger.Logger method)}
4748 \begin{fulllineitems}
4749 \phantomsection\label{\detokenize{commands/apidoc/src:src.logger.Logger.end_write}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{end\_write}}}{\emph{attribute}}{}
4750 Called just after command end: Put all fields
4751 corresponding to the command end context (time).
4752 Write the log xml file on the hard drive.
4753 And display the command to launch to get the log
4754 \begin{quote}\begin{description}
4755 \item[{Parameters}] \leavevmode
4756 \sphinxstyleliteralstrong{\sphinxupquote{dict}} (\sphinxstyleliteralemphasis{\sphinxupquote{attribute}}) \textendash{} the attribute to add to the node “Site”.
4758 \end{description}\end{quote}
4762 \index{error() (src.logger.Logger method)}
4764 \begin{fulllineitems}
4765 \phantomsection\label{\detokenize{commands/apidoc/src:src.logger.Logger.error}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{error}}}{\emph{message}}{}
4767 \begin{quote}\begin{description}
4768 \item[{Parameters}] \leavevmode
4769 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{message}}) \textendash{} The message to print.
4771 \end{description}\end{quote}
4775 \index{flush() (src.logger.Logger method)}
4777 \begin{fulllineitems}
4778 \phantomsection\label{\detokenize{commands/apidoc/src:src.logger.Logger.flush}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{flush}}}{}{}
4783 \index{put\_initial\_xml\_fields() (src.logger.Logger method)}
4785 \begin{fulllineitems}
4786 \phantomsection\label{\detokenize{commands/apidoc/src:src.logger.Logger.put_initial_xml_fields}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{put\_initial\_xml\_fields}}}{}{}
4787 Called at class initialization: Put all fields
4788 corresponding to the command context (user, time, …)
4792 \index{write() (src.logger.Logger method)}
4794 \begin{fulllineitems}
4795 \phantomsection\label{\detokenize{commands/apidoc/src:src.logger.Logger.write}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{write}}}{\emph{message}, \emph{level=None}, \emph{screenOnly=False}}{}
4796 function used in the commands
4797 to print in the terminal and the log file.
4798 \begin{quote}\begin{description}
4799 \item[{Parameters}] \leavevmode\begin{itemize}
4801 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{message}}) \textendash{} The message to print.
4804 \sphinxstyleliteralstrong{\sphinxupquote{int}} (\sphinxstyleliteralemphasis{\sphinxupquote{level}}) \textendash{} The output level corresponding
4805 to the message 0 \textless{} level \textless{} 6.
4808 \sphinxstyleliteralstrong{\sphinxupquote{boolean}} (\sphinxstyleliteralemphasis{\sphinxupquote{screenOnly}}) \textendash{} if True, do not write in log file.
4812 \end{description}\end{quote}
4819 \index{date\_to\_datetime() (in module src.logger)}
4821 \begin{fulllineitems}
4822 \phantomsection\label{\detokenize{commands/apidoc/src:src.logger.date_to_datetime}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.logger.}}\sphinxbfcode{\sphinxupquote{date\_to\_datetime}}}{\emph{date}}{}
4823 From a string date in format YYYYMMDD\_HHMMSS
4824 returns list year, mon, day, hour, minutes, seconds
4825 \begin{quote}\begin{description}
4826 \item[{Parameters}] \leavevmode
4827 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{date}}) \textendash{} The date in format YYYYMMDD\_HHMMSS
4829 \item[{Returns}] \leavevmode
4830 the same date and time in separate variables.
4832 \item[{Return type}] \leavevmode
4833 (str,str,str,str,str,str)
4835 \end{description}\end{quote}
4839 \index{getCurrentLogger() (in module src.logger)}
4841 \begin{fulllineitems}
4842 \phantomsection\label{\detokenize{commands/apidoc/src:src.logger.getCurrentLogger}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.logger.}}\sphinxbfcode{\sphinxupquote{getCurrentLogger}}}{}{}
4843 get current logging logger, set as DefaultLogger if not set yet
4847 \index{getDefaultLogger() (in module src.logger)}
4849 \begin{fulllineitems}
4850 \phantomsection\label{\detokenize{commands/apidoc/src:src.logger.getDefaultLogger}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.logger.}}\sphinxbfcode{\sphinxupquote{getDefaultLogger}}}{}{}
4851 get simple logging logger DefaultLogger, set it as current
4855 \index{getUnittestLogger() (in module src.logger)}
4857 \begin{fulllineitems}
4858 \phantomsection\label{\detokenize{commands/apidoc/src:src.logger.getUnittestLogger}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.logger.}}\sphinxbfcode{\sphinxupquote{getUnittestLogger}}}{}{}
4859 get simple logging logger UnittestLogger, set it as current
4863 \index{isCurrentLoggerUnittest() (in module src.logger)}
4865 \begin{fulllineitems}
4866 \phantomsection\label{\detokenize{commands/apidoc/src:src.logger.isCurrentLoggerUnittest}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.logger.}}\sphinxbfcode{\sphinxupquote{isCurrentLoggerUnittest}}}{}{}
4869 \index{list\_log\_file() (in module src.logger)}
4871 \begin{fulllineitems}
4872 \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}}{}
4873 Find all files corresponding to expression in dirPath
4874 \begin{quote}\begin{description}
4875 \item[{Parameters}] \leavevmode\begin{itemize}
4877 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{expression}}) \textendash{} the directory where to search the files
4880 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the regular expression of files to find
4884 \item[{Returns}] \leavevmode
4885 the list of files path and informations about it
4887 \item[{Return type}] \leavevmode
4890 \end{description}\end{quote}
4894 \index{sendMessageToCurrentLogger() (in module src.logger)}
4896 \begin{fulllineitems}
4897 \phantomsection\label{\detokenize{commands/apidoc/src:src.logger.sendMessageToCurrentLogger}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.logger.}}\sphinxbfcode{\sphinxupquote{sendMessageToCurrentLogger}}}{\emph{message}, \emph{level}}{}
4898 assume relay from obsolescent
4899 logger.write(msg, 1/2/3…) to future
4900 logging.critical/warning/info…(msg) (as logging package tips)
4904 \index{setCurrentLogger() (in module src.logger)}
4906 \begin{fulllineitems}
4907 \phantomsection\label{\detokenize{commands/apidoc/src:src.logger.setCurrentLogger}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.logger.}}\sphinxbfcode{\sphinxupquote{setCurrentLogger}}}{\emph{logger}}{}
4908 temporary send all in stdout as simple logging logger
4912 \index{show\_command\_log() (in module src.logger)}
4914 \begin{fulllineitems}
4915 \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}}{}
4916 Used in updateHatXml.
4917 Determine if the log xml file logFilePath
4918 has to be shown or not in the hat log.
4919 \begin{quote}\begin{description}
4920 \item[{Parameters}] \leavevmode\begin{itemize}
4922 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{application}}) \textendash{} the path to the command xml log file
4925 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the command of the log file
4928 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the application passed as parameter
4929 to the salomeTools command
4932 \sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{notShownCommands}}) \textendash{} the list of commands
4933 that are not shown by default
4937 \item[{Returns}] \leavevmode
4938 True if cmd is not in notShownCommands and the application
4939 in the log file corresponds to application
4941 \item[{Return type}] \leavevmode
4944 \end{description}\end{quote}
4948 \index{timedelta\_total\_seconds() (in module src.logger)}
4950 \begin{fulllineitems}
4951 \phantomsection\label{\detokenize{commands/apidoc/src:src.logger.timedelta_total_seconds}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.logger.}}\sphinxbfcode{\sphinxupquote{timedelta\_total\_seconds}}}{\emph{timedelta}}{}
4952 Replace total\_seconds from datetime module
4953 in order to be compatible with old python versions
4954 \begin{quote}\begin{description}
4955 \item[{Parameters}] \leavevmode
4956 \sphinxstyleliteralstrong{\sphinxupquote{datetime.timedelta}} (\sphinxstyleliteralemphasis{\sphinxupquote{timedelta}}) \textendash{} The delta between two dates
4958 \item[{Returns}] \leavevmode
4959 The number of seconds corresponding to timedelta.
4961 \item[{Return type}] \leavevmode
4964 \end{description}\end{quote}
4968 \index{update\_hat\_xml() (in module src.logger)}
4970 \begin{fulllineitems}
4971 \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={[}{]}}}{}
4972 Create the xml file in logDir that contain all the xml file
4973 and have a name like YYYYMMDD\_HHMMSS\_namecmd.xml
4974 \begin{quote}\begin{description}
4975 \item[{Parameters}] \leavevmode\begin{itemize}
4977 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{application}}) \textendash{} the directory to parse
4980 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the name of the application if there is any
4984 \end{description}\end{quote}
4990 \subsubsection{src.options module}
4991 \label{\detokenize{commands/apidoc/src:module-src.options}}\label{\detokenize{commands/apidoc/src:src-options-module}}\index{src.options (module)}
4992 The Options class that manages the access to all options passed as
4993 parameters in salomeTools command lines
4994 \index{OptResult (class in src.options)}
4996 \begin{fulllineitems}
4997 \phantomsection\label{\detokenize{commands/apidoc/src:src.options.OptResult}}\pysigline{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.options.}}\sphinxbfcode{\sphinxupquote{OptResult}}}
4998 Bases: \sphinxcode{\sphinxupquote{object}}
5000 An instance of this class will be the object manipulated
5001 in code of all salomeTools commands
5002 The aim of this class is to have an elegant syntax to manipulate the options.
5004 \begin{DUlineblock}{0em}
5006 \item[] \textgreater{}\textgreater{} options, remainderArgs = command.parseArguments(args)
5007 \item[] \textgreater{}\textgreater{} print(options.output\_verbose\_level)
5008 \item[] \textgreater{}\textgreater{} ‘INFO’
5013 \index{Options (class in src.options)}
5015 \begin{fulllineitems}
5016 \phantomsection\label{\detokenize{commands/apidoc/src:src.options.Options}}\pysigline{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.options.}}\sphinxbfcode{\sphinxupquote{Options}}}
5017 Bases: \sphinxcode{\sphinxupquote{object}}
5019 Class to manage all salomeTools options
5020 \index{add\_option() (src.options.Options method)}
5022 \begin{fulllineitems}
5023 \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}}{}
5024 Add an option to a command. It gets all attributes
5025 of an option and append it in the options field
5026 \begin{quote}\begin{description}
5027 \item[{Parameters}] \leavevmode\begin{itemize}
5029 \sphinxstyleliteralstrong{\sphinxupquote{shortName}} \textendash{} (str)
5030 The short name of the option (as ‘-l’ for level option).
5033 \sphinxstyleliteralstrong{\sphinxupquote{longName}} \textendash{} (str)
5034 The long name of the option (as ‘\textendash{}level’ for level option).
5037 \sphinxstyleliteralstrong{\sphinxupquote{optionType}} \textendash{} (str) The type of the option (ex “int”).
5040 \sphinxstyleliteralstrong{\sphinxupquote{destName}} \textendash{} (str) The name that will be used in the code.
5043 \sphinxstyleliteralstrong{\sphinxupquote{helpString}} \textendash{} (str)
5044 The text to display when user ask for help on a command.
5048 \item[{Returns}] \leavevmode
5051 \end{description}\end{quote}
5055 \index{debug\_write() (src.options.Options method)}
5057 \begin{fulllineitems}
5058 \phantomsection\label{\detokenize{commands/apidoc/src:src.options.Options.debug_write}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{debug\_write}}}{}{}
5061 \index{filterLevel() (src.options.Options method)}
5063 \begin{fulllineitems}
5064 \phantomsection\label{\detokenize{commands/apidoc/src:src.options.Options.filterLevel}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{filterLevel}}}{\emph{aLevel}}{}
5065 filter level logging values
5069 \index{filterList2() (src.options.Options method)}
5071 \begin{fulllineitems}
5072 \phantomsection\label{\detokenize{commands/apidoc/src:src.options.Options.filterList2}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{filterList2}}}{\emph{aStr}}{}
5073 filter a list as ‘KERNEL,YACS,etc.’
5077 \index{getDetailOption() (src.options.Options method)}
5079 \begin{fulllineitems}
5080 \phantomsection\label{\detokenize{commands/apidoc/src:src.options.Options.getDetailOption}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{getDetailOption}}}{\emph{option}}{}
5082 \begin{quote}\begin{description}
5083 \item[{Returns}] \leavevmode
5084 (tuple) 4-elements (shortName, longName, optionType, helpString)
5086 \end{description}\end{quote}
5090 \index{get\_help() (src.options.Options method)}
5092 \begin{fulllineitems}
5093 \phantomsection\label{\detokenize{commands/apidoc/src:src.options.Options.get_help}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get\_help}}}{}{}
5094 Returns all options stored in self.options
5095 as help message colored string
5096 \begin{quote}\begin{description}
5097 \item[{Returns}] \leavevmode
5098 (str) colored string
5100 \end{description}\end{quote}
5104 \index{indent() (src.options.Options method)}
5106 \begin{fulllineitems}
5107 \phantomsection\label{\detokenize{commands/apidoc/src:src.options.Options.indent}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{indent}}}{\emph{text}, \emph{amount}, \emph{car=' '}}{}
5108 indent multi lines message
5112 \index{parse\_args() (src.options.Options method)}
5114 \begin{fulllineitems}
5115 \phantomsection\label{\detokenize{commands/apidoc/src:src.options.Options.parse_args}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parse\_args}}}{\emph{argList=None}}{}
5116 Instantiates the class OptResult
5117 that gives access to all options in the code
5118 \begin{quote}\begin{description}
5119 \item[{Parameters}] \leavevmode
5120 \sphinxstyleliteralstrong{\sphinxupquote{argList}} \textendash{} (list) the raw list of arguments that were passed
5122 \item[{Returns}] \leavevmode
5123 (OptResult, list) as (optResult, args)
5124 optResult is the option instance to manipulate in the code.
5125 args is the full raw list of passed options
5127 \end{description}\end{quote}
5136 \subsubsection{src.printcolors module}
5137 \label{\detokenize{commands/apidoc/src:module-src.printcolors}}\label{\detokenize{commands/apidoc/src:src-printcolors-module}}\index{src.printcolors (module)}
5138 In this file is stored the mechanism that manage color prints in the terminal
5139 \index{cleancolor() (in module src.printcolors)}
5141 \begin{fulllineitems}
5142 \phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.cleancolor}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{cleancolor}}}{\emph{message}}{}
5143 remove color from a colored text.
5144 \begin{quote}\begin{description}
5145 \item[{Parameters}] \leavevmode
5146 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{message}}) \textendash{} The text to be cleaned.
5148 \item[{Returns}] \leavevmode
5151 \item[{Return type}] \leavevmode
5154 \end{description}\end{quote}
5158 \index{print\_color\_map() (in module src.printcolors)}
5160 \begin{fulllineitems}
5161 \phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.print_color_map}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{print\_color\_map}}}{}{}
5162 This method prints the color map
5166 \index{print\_color\_range() (in module src.printcolors)}
5168 \begin{fulllineitems}
5169 \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}}{}
5170 print possible range values for colors
5171 \begin{quote}\begin{description}
5172 \item[{Parameters}] \leavevmode\begin{itemize}
5174 \sphinxstyleliteralstrong{\sphinxupquote{int}} (\sphinxstyleliteralemphasis{\sphinxupquote{end}}) \textendash{} The smaller value.
5177 \sphinxstyleliteralstrong{\sphinxupquote{int}} \textendash{} The bigger value.
5181 \end{description}\end{quote}
5185 \index{print\_value() (in module src.printcolors)}
5187 \begin{fulllineitems}
5188 \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=''}}{}
5189 shortcut method to print a label and a value with the info color
5190 \begin{quote}\begin{description}
5191 \item[{Parameters}] \leavevmode\begin{itemize}
5193 \sphinxstyleliteralstrong{\sphinxupquote{class logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} the logger instance.
5196 \sphinxstyleliteralstrong{\sphinxupquote{int}} (\sphinxstyleliteralemphasis{\sphinxupquote{level}}) \textendash{} the label to print.
5199 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{suffix}}) \textendash{} the value to print.
5202 \sphinxstyleliteralstrong{\sphinxupquote{int}} \textendash{} the level of verboseness.
5205 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the suffix to add at the end.
5209 \end{description}\end{quote}
5213 \index{printc() (in module src.printcolors)}
5215 \begin{fulllineitems}
5216 \phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.printc}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{printc}}}{\emph{txt}, \emph{code=''}}{}
5217 print a text with colors
5218 \begin{quote}\begin{description}
5219 \item[{Parameters}] \leavevmode\begin{itemize}
5221 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{code}}) \textendash{} The text to be printed.
5224 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The color to use.
5228 \item[{Returns}] \leavevmode
5231 \item[{Return type}] \leavevmode
5234 \end{description}\end{quote}
5238 \index{printcError() (in module src.printcolors)}
5240 \begin{fulllineitems}
5241 \phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.printcError}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{printcError}}}{\emph{txt}}{}
5242 print a text error color
5243 \begin{quote}\begin{description}
5244 \item[{Parameters}] \leavevmode
5245 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{txt}}) \textendash{} The text to be printed.
5247 \item[{Returns}] \leavevmode
5250 \item[{Return type}] \leavevmode
5253 \end{description}\end{quote}
5257 \index{printcHeader() (in module src.printcolors)}
5259 \begin{fulllineitems}
5260 \phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.printcHeader}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{printcHeader}}}{\emph{txt}}{}
5261 print a text header color
5262 \begin{quote}\begin{description}
5263 \item[{Parameters}] \leavevmode
5264 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{txt}}) \textendash{} The text to be printed.
5266 \item[{Returns}] \leavevmode
5269 \item[{Return type}] \leavevmode
5272 \end{description}\end{quote}
5276 \index{printcHighlight() (in module src.printcolors)}
5278 \begin{fulllineitems}
5279 \phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.printcHighlight}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{printcHighlight}}}{\emph{txt}}{}
5280 print a text highlight color
5281 \begin{quote}\begin{description}
5282 \item[{Parameters}] \leavevmode
5283 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{txt}}) \textendash{} The text to be printed.
5285 \item[{Returns}] \leavevmode
5288 \item[{Return type}] \leavevmode
5291 \end{description}\end{quote}
5295 \index{printcInfo() (in module src.printcolors)}
5297 \begin{fulllineitems}
5298 \phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.printcInfo}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{printcInfo}}}{\emph{txt}}{}
5299 print a text info color
5300 \begin{quote}\begin{description}
5301 \item[{Parameters}] \leavevmode
5302 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{txt}}) \textendash{} The text to be printed.
5304 \item[{Returns}] \leavevmode
5307 \item[{Return type}] \leavevmode
5310 \end{description}\end{quote}
5314 \index{printcLabel() (in module src.printcolors)}
5316 \begin{fulllineitems}
5317 \phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.printcLabel}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{printcLabel}}}{\emph{txt}}{}
5318 print a text label color
5319 \begin{quote}\begin{description}
5320 \item[{Parameters}] \leavevmode
5321 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{txt}}) \textendash{} The text to be printed.
5323 \item[{Returns}] \leavevmode
5326 \item[{Return type}] \leavevmode
5329 \end{description}\end{quote}
5333 \index{printcSuccess() (in module src.printcolors)}
5335 \begin{fulllineitems}
5336 \phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.printcSuccess}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{printcSuccess}}}{\emph{txt}}{}
5337 print a text success color
5338 \begin{quote}\begin{description}
5339 \item[{Parameters}] \leavevmode
5340 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{txt}}) \textendash{} The text to be printed.
5342 \item[{Returns}] \leavevmode
5345 \item[{Return type}] \leavevmode
5348 \end{description}\end{quote}
5352 \index{printcWarning() (in module src.printcolors)}
5354 \begin{fulllineitems}
5355 \phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.printcWarning}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{printcWarning}}}{\emph{txt}}{}
5356 print a text warning color
5357 \begin{quote}\begin{description}
5358 \item[{Parameters}] \leavevmode
5359 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{txt}}) \textendash{} The text to be printed.
5361 \item[{Returns}] \leavevmode
5364 \item[{Return type}] \leavevmode
5367 \end{description}\end{quote}
5373 \subsubsection{src.product module}
5374 \label{\detokenize{commands/apidoc/src:module-src.product}}\label{\detokenize{commands/apidoc/src:src-product-module}}\index{src.product (module)}
5375 In this file are implemented the methods
5376 relative to the product notion of salomeTools
5377 \index{check\_config\_exists() (in module src.product)}
5379 \begin{fulllineitems}
5380 \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}}{}
5381 Verify that the installation directory of a product in a base exists
5382 Check all the config-\textless{}i\textgreater{} directory and verify the sat-config.pyconf file
5384 \begin{quote}\begin{description}
5385 \item[{Parameters}] \leavevmode\begin{itemize}
5387 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The global configuration
5390 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{prod\_dir}}) \textendash{} The product installation directory path
5391 (without config-\textless{}i\textgreater{})
5394 \sphinxstyleliteralstrong{\sphinxupquote{Config}} \textendash{} The configuration specific to
5399 \item[{Returns}] \leavevmode
5400 True or false is the installation is found or not
5401 and if it is found, the path of the found installation
5403 \item[{Return type}] \leavevmode
5406 \end{description}\end{quote}
5410 \index{check\_installation() (in module src.product)}
5412 \begin{fulllineitems}
5413 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.check_installation}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{check\_installation}}}{\emph{product\_info}}{}
5414 Verify if a product is well installed. Checks install directory presence
5415 and some additional files if it is defined in the config
5416 \begin{quote}\begin{description}
5417 \item[{Parameters}] \leavevmode
5418 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5421 \item[{Returns}] \leavevmode
5422 True if it is well installed
5424 \item[{Return type}] \leavevmode
5427 \end{description}\end{quote}
5431 \index{check\_source() (in module src.product)}
5433 \begin{fulllineitems}
5434 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.check_source}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{check\_source}}}{\emph{product\_info}}{}
5435 Verify if a sources of product is preset. Checks source directory presence
5436 \begin{quote}\begin{description}
5437 \item[{Parameters}] \leavevmode
5438 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5441 \item[{Returns}] \leavevmode
5442 True if it is well installed
5444 \item[{Return type}] \leavevmode
5447 \end{description}\end{quote}
5451 \index{get\_base\_install\_dir() (in module src.product)}
5453 \begin{fulllineitems}
5454 \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}}{}
5455 Compute the installation directory of a product in base
5456 \begin{quote}\begin{description}
5457 \item[{Parameters}] \leavevmode\begin{itemize}
5459 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The global configuration
5462 \sphinxstyleliteralstrong{\sphinxupquote{Config}} \textendash{} The configuration specific to
5466 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{version}}) \textendash{} The version of the product
5470 \item[{Returns}] \leavevmode
5471 The path of the product installation
5473 \item[{Return type}] \leavevmode
5476 \end{description}\end{quote}
5480 \index{get\_install\_dir() (in module src.product)}
5482 \begin{fulllineitems}
5483 \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}}{}
5484 Compute the installation directory of a given product
5485 \begin{quote}\begin{description}
5486 \item[{Parameters}] \leavevmode\begin{itemize}
5488 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The global configuration
5491 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{version}}) \textendash{} This corresponds to the value given by user in its
5492 application.pyconf for the specific product. If “yes”, the
5493 user wants the product to be in base. If “no”, he wants the
5494 product to be in the application workdir
5497 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The version of the product
5500 \sphinxstyleliteralstrong{\sphinxupquote{Config}} \textendash{} The configuration specific to
5505 \item[{Returns}] \leavevmode
5506 The path of the product installation
5508 \item[{Return type}] \leavevmode
5511 \end{description}\end{quote}
5515 \index{get\_product\_components() (in module src.product)}
5517 \begin{fulllineitems}
5518 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.get_product_components}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{get\_product\_components}}}{\emph{product\_info}}{}
5519 Get the component list to generate with the product
5520 \begin{quote}\begin{description}
5521 \item[{Parameters}] \leavevmode
5522 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5525 \item[{Returns}] \leavevmode
5526 The list of names of the components
5528 \item[{Return type}] \leavevmode
5531 \end{description}\end{quote}
5535 \index{get\_product\_config() (in module src.product)}
5537 \begin{fulllineitems}
5538 \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}}{}
5539 Get the specific configuration of a product from the global configuration
5540 \begin{quote}\begin{description}
5541 \item[{Parameters}] \leavevmode\begin{itemize}
5543 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The global configuration
5546 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_name}}) \textendash{} The name of the product
5549 \sphinxstyleliteralstrong{\sphinxupquote{boolean}} (\sphinxstyleliteralemphasis{\sphinxupquote{with\_install\_dir}}) \textendash{} If false, do not provide an install
5550 directory (at false only for internal use
5551 of the function check\_config\_exists)
5555 \item[{Returns}] \leavevmode
5556 the specific configuration of the product
5558 \item[{Return type}] \leavevmode
5559 {\hyperref[\detokenize{commands/apidoc/src:src.pyconf.Config}]{\sphinxcrossref{Config}}} (\autopageref*{\detokenize{commands/apidoc/src:src.pyconf.Config}})
5561 \end{description}\end{quote}
5565 \index{get\_product\_dependencies() (in module src.product)}
5567 \begin{fulllineitems}
5568 \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}}{}
5569 Get recursively the list of products that are
5570 in the product\_info dependencies
5571 \begin{quote}\begin{description}
5572 \item[{Parameters}] \leavevmode\begin{itemize}
5574 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The global configuration
5577 \sphinxstyleliteralstrong{\sphinxupquote{Config}} \textendash{} The configuration specific to
5582 \item[{Returns}] \leavevmode
5583 the list of products in dependence
5585 \item[{Return type}] \leavevmode
5588 \end{description}\end{quote}
5592 \index{get\_product\_section() (in module src.product)}
5594 \begin{fulllineitems}
5595 \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}}{}
5596 Get the product description from the configuration
5597 \begin{quote}\begin{description}
5598 \item[{Parameters}] \leavevmode\begin{itemize}
5600 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The global configuration
5603 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{section}}) \textendash{} The product name
5606 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The version of the product
5609 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The searched section (if not None, the section is
5614 \item[{Returns}] \leavevmode
5615 The product description
5617 \item[{Return type}] \leavevmode
5618 {\hyperref[\detokenize{commands/apidoc/src:src.pyconf.Config}]{\sphinxcrossref{Config}}} (\autopageref*{\detokenize{commands/apidoc/src:src.pyconf.Config}})
5620 \end{description}\end{quote}
5624 \index{get\_products\_infos() (in module src.product)}
5626 \begin{fulllineitems}
5627 \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}}{}
5628 Get the specific configuration of a list of products
5629 \begin{quote}\begin{description}
5630 \item[{Parameters}] \leavevmode\begin{itemize}
5632 \sphinxstyleliteralstrong{\sphinxupquote{List}} (\sphinxstyleliteralemphasis{\sphinxupquote{lproducts}}) \textendash{} The list of product names
5635 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The global configuration
5639 \item[{Returns}] \leavevmode
5641 (product name, specific configuration of the product)
5643 \item[{Return type}] \leavevmode
5644 {[}(str, {\hyperref[\detokenize{commands/apidoc/src:src.pyconf.Config}]{\sphinxcrossref{Config}}} (\autopageref*{\detokenize{commands/apidoc/src:src.pyconf.Config}})){]}
5646 \end{description}\end{quote}
5650 \index{product\_compiles() (in module src.product)}
5652 \begin{fulllineitems}
5653 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_compiles}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_compiles}}}{\emph{product\_info}}{}
5654 Know if a product compiles or not
5655 (some products do not have a compilation procedure)
5656 \begin{quote}\begin{description}
5657 \item[{Parameters}] \leavevmode
5658 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5661 \item[{Returns}] \leavevmode
5662 True if the product compiles, else False
5664 \item[{Return type}] \leavevmode
5667 \end{description}\end{quote}
5671 \index{product\_has\_env\_script() (in module src.product)}
5673 \begin{fulllineitems}
5674 \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}}{}
5675 Know if a product has an environment script
5676 \begin{quote}\begin{description}
5677 \item[{Parameters}] \leavevmode
5678 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5681 \item[{Returns}] \leavevmode
5682 True if the product it has an environment script, else False
5684 \item[{Return type}] \leavevmode
5687 \end{description}\end{quote}
5691 \index{product\_has\_logo() (in module src.product)}
5693 \begin{fulllineitems}
5694 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_has_logo}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_has\_logo}}}{\emph{product\_info}}{}
5695 Know if a product has a logo (YACSGEN generate)
5696 \begin{quote}\begin{description}
5697 \item[{Parameters}] \leavevmode
5698 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5701 \item[{Returns}] \leavevmode
5702 The path of the logo if the product has a logo, else False
5704 \item[{Return type}] \leavevmode
5707 \end{description}\end{quote}
5711 \index{product\_has\_patches() (in module src.product)}
5713 \begin{fulllineitems}
5714 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_has_patches}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_has\_patches}}}{\emph{product\_info}}{}
5715 Know if a product has one or more patches
5716 \begin{quote}\begin{description}
5717 \item[{Parameters}] \leavevmode
5718 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5721 \item[{Returns}] \leavevmode
5722 True if the product has one or more patches
5724 \item[{Return type}] \leavevmode
5727 \end{description}\end{quote}
5731 \index{product\_has\_salome\_gui() (in module src.product)}
5733 \begin{fulllineitems}
5734 \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}}{}
5735 Know if a product has a SALOME gui
5736 \begin{quote}\begin{description}
5737 \item[{Parameters}] \leavevmode
5738 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5741 \item[{Returns}] \leavevmode
5742 True if the product has a SALOME gui, else False
5744 \item[{Return type}] \leavevmode
5747 \end{description}\end{quote}
5751 \index{product\_has\_script() (in module src.product)}
5753 \begin{fulllineitems}
5754 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_has_script}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_has\_script}}}{\emph{product\_info}}{}
5755 Know if a product has a compilation script
5756 \begin{quote}\begin{description}
5757 \item[{Parameters}] \leavevmode
5758 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5761 \item[{Returns}] \leavevmode
5762 True if the product it has a compilation script, else False
5764 \item[{Return type}] \leavevmode
5767 \end{description}\end{quote}
5771 \index{product\_is\_autotools() (in module src.product)}
5773 \begin{fulllineitems}
5774 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_autotools}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_autotools}}}{\emph{product\_info}}{}
5775 Know if a product is compiled using the autotools
5776 \begin{quote}\begin{description}
5777 \item[{Parameters}] \leavevmode
5778 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5781 \item[{Returns}] \leavevmode
5782 True if the product is autotools, else False
5784 \item[{Return type}] \leavevmode
5787 \end{description}\end{quote}
5791 \index{product\_is\_cmake() (in module src.product)}
5793 \begin{fulllineitems}
5794 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_cmake}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_cmake}}}{\emph{product\_info}}{}
5795 Know if a product is compiled using the cmake
5796 \begin{quote}\begin{description}
5797 \item[{Parameters}] \leavevmode
5798 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5801 \item[{Returns}] \leavevmode
5802 True if the product is cmake, else False
5804 \item[{Return type}] \leavevmode
5807 \end{description}\end{quote}
5811 \index{product\_is\_cpp() (in module src.product)}
5813 \begin{fulllineitems}
5814 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_cpp}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_cpp}}}{\emph{product\_info}}{}
5815 Know if a product is cpp
5816 \begin{quote}\begin{description}
5817 \item[{Parameters}] \leavevmode
5818 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5821 \item[{Returns}] \leavevmode
5822 True if the product is a cpp, else False
5824 \item[{Return type}] \leavevmode
5827 \end{description}\end{quote}
5831 \index{product\_is\_debug() (in module src.product)}
5833 \begin{fulllineitems}
5834 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_debug}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_debug}}}{\emph{product\_info}}{}
5835 Know if a product is in debug mode
5836 \begin{quote}\begin{description}
5837 \item[{Parameters}] \leavevmode
5838 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5841 \item[{Returns}] \leavevmode
5842 True if the product is in debug mode, else False
5844 \item[{Return type}] \leavevmode
5847 \end{description}\end{quote}
5851 \index{product\_is\_dev() (in module src.product)}
5853 \begin{fulllineitems}
5854 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_dev}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_dev}}}{\emph{product\_info}}{}
5855 Know if a product is in dev mode
5856 \begin{quote}\begin{description}
5857 \item[{Parameters}] \leavevmode
5858 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5861 \item[{Returns}] \leavevmode
5862 True if the product is in dev mode, else False
5864 \item[{Return type}] \leavevmode
5867 \end{description}\end{quote}
5871 \index{product\_is\_fixed() (in module src.product)}
5873 \begin{fulllineitems}
5874 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_fixed}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_fixed}}}{\emph{product\_info}}{}
5875 Know if a product is fixed
5876 \begin{quote}\begin{description}
5877 \item[{Parameters}] \leavevmode
5878 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5881 \item[{Returns}] \leavevmode
5882 True if the product is fixed, else False
5884 \item[{Return type}] \leavevmode
5887 \end{description}\end{quote}
5891 \index{product\_is\_generated() (in module src.product)}
5893 \begin{fulllineitems}
5894 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_generated}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_generated}}}{\emph{product\_info}}{}
5895 Know if a product is generated (YACSGEN)
5896 \begin{quote}\begin{description}
5897 \item[{Parameters}] \leavevmode
5898 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5901 \item[{Returns}] \leavevmode
5902 True if the product is generated
5904 \item[{Return type}] \leavevmode
5907 \end{description}\end{quote}
5911 \index{product\_is\_mpi() (in module src.product)}
5913 \begin{fulllineitems}
5914 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_mpi}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_mpi}}}{\emph{product\_info}}{}
5915 Know if a product has openmpi in its dependencies
5916 \begin{quote}\begin{description}
5917 \item[{Parameters}] \leavevmode
5918 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5921 \item[{Returns}] \leavevmode
5922 True if the product has openmpi inits dependencies
5924 \item[{Return type}] \leavevmode
5927 \end{description}\end{quote}
5931 \index{product\_is\_native() (in module src.product)}
5933 \begin{fulllineitems}
5934 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_native}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_native}}}{\emph{product\_info}}{}
5935 Know if a product is native
5936 \begin{quote}\begin{description}
5937 \item[{Parameters}] \leavevmode
5938 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5941 \item[{Returns}] \leavevmode
5942 True if the product is native, else False
5944 \item[{Return type}] \leavevmode
5947 \end{description}\end{quote}
5951 \index{product\_is\_salome() (in module src.product)}
5953 \begin{fulllineitems}
5954 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_salome}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_salome}}}{\emph{product\_info}}{}
5955 Know if a product is a SALOME module
5956 \begin{quote}\begin{description}
5957 \item[{Parameters}] \leavevmode
5958 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5961 \item[{Returns}] \leavevmode
5962 True if the product is a SALOME module, else False
5964 \item[{Return type}] \leavevmode
5967 \end{description}\end{quote}
5971 \index{product\_is\_smesh\_plugin() (in module src.product)}
5973 \begin{fulllineitems}
5974 \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}}{}
5975 Know if a product is a SMESH plugin
5976 \begin{quote}\begin{description}
5977 \item[{Parameters}] \leavevmode
5978 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
5981 \item[{Returns}] \leavevmode
5982 True if the product is a SMESH plugin, else False
5984 \item[{Return type}] \leavevmode
5987 \end{description}\end{quote}
5991 \index{product\_is\_vcs() (in module src.product)}
5993 \begin{fulllineitems}
5994 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_vcs}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_vcs}}}{\emph{product\_info}}{}
5995 Know if a product is download using git, svn or cvs (not archive)
5996 \begin{quote}\begin{description}
5997 \item[{Parameters}] \leavevmode
5998 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
6001 \item[{Returns}] \leavevmode
6002 True if the product is vcs, else False
6004 \item[{Return type}] \leavevmode
6007 \end{description}\end{quote}
6011 \index{product\_is\_verbose() (in module src.product)}
6013 \begin{fulllineitems}
6014 \phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_verbose}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_verbose}}}{\emph{product\_info}}{}
6015 Know if a product is in verbose mode
6016 \begin{quote}\begin{description}
6017 \item[{Parameters}] \leavevmode
6018 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to
6021 \item[{Returns}] \leavevmode
6022 True if the product is in verbose mode, else False
6024 \item[{Return type}] \leavevmode
6027 \end{description}\end{quote}
6033 \subsubsection{src.pyconf module}
6034 \label{\detokenize{commands/apidoc/src:src-pyconf-module}}\label{\detokenize{commands/apidoc/src:module-src.pyconf}}\index{src.pyconf (module)}
6035 This is a configuration module for Python.
6037 This module should work under Python versions \textgreater{}= 2.2, and cannot be used with
6038 earlier versions since it uses new-style classes.
6040 Development and testing has only been carried out (so far) on Python 2.3.4 and
6041 Python 2.4.2. See the test module (test\_config.py) included in the
6042 U\{distribution\textless{}\sphinxurl{http://www.red-dove.com/python\_config}.html\textbar{}\_blank\textgreater{}\} (follow the
6045 A simple example - with the example configuration file:
6047 \fvset{hllines={, ,}}%
6048 \begin{sphinxVerbatim}[commandchars=\\\{\}]
6052 stream : {}`sys.stderr{}`
6053 message: \PYGZsq{}Welcome\PYGZsq{}
6054 name: \PYGZsq{}Harry\PYGZsq{}
6057 stream : {}`sys.stdout{}`
6058 message: \PYGZsq{}Welkom\PYGZsq{}
6059 name: \PYGZsq{}Ruud\PYGZsq{}
6062 stream : \PYGZdl{}messages[0].stream
6063 message: \PYGZsq{}Bienvenue\PYGZsq{}
6067 \end{sphinxVerbatim}
6069 a program to read the configuration would be:
6071 \fvset{hllines={, ,}}%
6072 \begin{sphinxVerbatim}[commandchars=\\\{\}]
6073 \PYG{k+kn}{from} \PYG{n+nn}{config} \PYG{k}{import} \PYG{n}{Config}
6075 \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}{)}
6076 \PYG{n}{cfg} \PYG{o}{=} \PYG{n}{Config}\PYG{p}{(}\PYG{n}{f}\PYG{p}{)}
6077 \PYG{k}{for} \PYG{n}{m} \PYG{o+ow}{in} \PYG{n}{cfg}\PYG{o}{.}\PYG{n}{messages}\PYG{p}{:}
6078 \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}{)}
6079 \PYG{k}{try}\PYG{p}{:}
6080 \PYG{n+nb}{print} \PYG{o}{\PYGZgt{}\PYGZgt{}} \PYG{n}{m}\PYG{o}{.}\PYG{n}{stream}\PYG{p}{,} \PYG{n}{s}
6081 \PYG{k}{except} \PYG{n+ne}{IOError}\PYG{p}{,} \PYG{n}{e}\PYG{p}{:}
6082 \PYG{n+nb}{print} \PYG{n}{e}
6083 \end{sphinxVerbatim}
6085 which, when run, would yield the console output:
6087 \fvset{hllines={, ,}}%
6088 \begin{sphinxVerbatim}[commandchars=\\\{\}]
6089 \PYG{n}{Welcome}\PYG{p}{,} \PYG{n}{Harry}
6090 \PYG{n}{Welkom}\PYG{p}{,} \PYG{n}{Ruud}
6091 \PYG{n}{Bienvenue}\PYG{p}{,} \PYG{n}{Yves}
6092 \end{sphinxVerbatim}
6094 See U\{this tutorial\textless{}\sphinxurl{http://www.red-dove.com/python\_config}.html\textbar{}\_blank\textgreater{}\} for more
6097 \#modified for salomeTools
6100 @author: Vinay Sajip
6102 @copyright: Copyright (C) 2004-2007 Vinay Sajip. All Rights Reserved.
6104 @var streamOpener: The default stream opener. This is a factory function which
6105 takes a string (e.g. filename) and returns a stream suitable for reading. If
6106 unable to open the stream, an IOError exception should be thrown.
6108 The default value of this variable is L\{defaultStreamOpener\}. For an example
6109 of how it’s used, see test\_config.py (search for streamOpener).
6110 \index{Config (class in src.pyconf)}
6112 \begin{fulllineitems}
6113 \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}}{}
6114 Bases: {\hyperref[\detokenize{commands/apidoc/src:src.pyconf.Mapping}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.pyconf.Mapping}}}}} (\autopageref*{\detokenize{commands/apidoc/src:src.pyconf.Mapping}})
6116 This class represents a configuration, and is the only one which clients
6117 need to interface to, under normal circumstances.
6118 \index{Config.Namespace (class in src.pyconf)}
6120 \begin{fulllineitems}
6121 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Config.Namespace}}\pysigline{\sphinxbfcode{\sphinxupquote{class }}\sphinxbfcode{\sphinxupquote{Namespace}}}
6122 Bases: \sphinxcode{\sphinxupquote{object}}
6124 This internal class is used for implementing default namespaces.
6126 An instance acts as a namespace.
6130 \index{addNamespace() (src.pyconf.Config method)}
6132 \begin{fulllineitems}
6133 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Config.addNamespace}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{addNamespace}}}{\emph{ns}, \emph{name=None}}{}
6134 Add a namespace to this configuration which can be used to evaluate
6135 (resolve) dotted-identifier expressions.
6136 @param ns: The namespace to be added.
6137 @type ns: A module or other namespace suitable for passing as an
6139 @param name: A name for the namespace, which, if specified, provides
6140 an additional level of indirection.
6145 \index{getByPath() (src.pyconf.Config method)}
6147 \begin{fulllineitems}
6148 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Config.getByPath}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{getByPath}}}{\emph{path}}{}
6149 Obtain a value in the configuration via its path.
6150 @param path: The path of the required value
6152 @return the value at the specified path.
6154 @raise ConfigError: If the path is invalid
6158 \index{load() (src.pyconf.Config method)}
6160 \begin{fulllineitems}
6161 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Config.load}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{load}}}{\emph{stream}}{}
6162 Load the configuration from the specified stream. Multiple streams can
6163 be used to populate the same instance, as long as there are no
6164 clashing keys. The stream is closed.
6165 @param stream: A stream from which the configuration is read.
6166 @type stream: A read-only stream (file-like object).
6167 @raise ConfigError: if keys in the loaded configuration clash with
6169 @raise ConfigFormatError: if there is a syntax error in the stream.
6173 \index{removeNamespace() (src.pyconf.Config method)}
6175 \begin{fulllineitems}
6176 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Config.removeNamespace}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{removeNamespace}}}{\emph{ns}, \emph{name=None}}{}
6177 Remove a namespace added with L\{addNamespace\}.
6178 @param ns: The namespace to be removed.
6179 @param name: The name which was specified when L\{addNamespace\} was
6190 \begin{fulllineitems}
6191 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigError}}\pysigline{\sphinxbfcode{\sphinxupquote{exception }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{ConfigError}}}
6192 Bases: \sphinxcode{\sphinxupquote{exceptions.Exception}}
6194 This is the base class of exceptions raised by this module.
6198 \index{ConfigFormatError}
6200 \begin{fulllineitems}
6201 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigFormatError}}\pysigline{\sphinxbfcode{\sphinxupquote{exception }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{ConfigFormatError}}}
6202 Bases: {\hyperref[\detokenize{commands/apidoc/src:src.pyconf.ConfigError}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.pyconf.ConfigError}}}}} (\autopageref*{\detokenize{commands/apidoc/src:src.pyconf.ConfigError}})
6204 This is the base class of exceptions raised due to syntax errors in
6209 \index{ConfigInputStream (class in src.pyconf)}
6211 \begin{fulllineitems}
6212 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigInputStream}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{ConfigInputStream}}}{\emph{stream}}{}
6213 Bases: \sphinxcode{\sphinxupquote{object}}
6215 An input stream which can read either ANSI files with default encoding
6216 or Unicode files with BOMs.
6218 Handles UTF-8, UTF-16LE, UTF-16BE. Could handle UTF-32 if Python had
6220 \index{close() (src.pyconf.ConfigInputStream method)}
6222 \begin{fulllineitems}
6223 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigInputStream.close}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{close}}}{}{}
6226 \index{read() (src.pyconf.ConfigInputStream method)}
6228 \begin{fulllineitems}
6229 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigInputStream.read}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{read}}}{\emph{size}}{}
6232 \index{readline() (src.pyconf.ConfigInputStream method)}
6234 \begin{fulllineitems}
6235 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigInputStream.readline}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{readline}}}{}{}
6241 \index{ConfigList (class in src.pyconf)}
6243 \begin{fulllineitems}
6244 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigList}}\pysigline{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{ConfigList}}}
6245 Bases: \sphinxcode{\sphinxupquote{list}}
6247 This class implements an ordered list of configurations and allows you
6248 to try getting the configuration from each entry in turn, returning
6249 the first successfully obtained value.
6250 \index{getByPath() (src.pyconf.ConfigList method)}
6252 \begin{fulllineitems}
6253 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigList.getByPath}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{getByPath}}}{\emph{path}}{}
6254 Obtain a value from the first configuration in the list which defines
6257 @param path: The path of the value to retrieve.
6259 @return: The value from the earliest configuration in the list which
6262 @raise ConfigError: If no configuration in the list has an entry with
6270 \index{ConfigMerger (class in src.pyconf)}
6272 \begin{fulllineitems}
6273 \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{}}}{}
6274 Bases: \sphinxcode{\sphinxupquote{object}}
6276 This class is used for merging two configurations. If a key exists in the
6277 merge operand but not the merge target, then the entry is copied from the
6278 merge operand to the merge target. If a key exists in both configurations,
6279 then a resolver (a callable) is called to decide how to handle the
6281 \index{handleMismatch() (src.pyconf.ConfigMerger method)}
6283 \begin{fulllineitems}
6284 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigMerger.handleMismatch}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{handleMismatch}}}{\emph{obj1}, \emph{obj2}}{}
6285 Handle a mismatch between two objects.
6287 @param obj1: The object to merge into.
6289 @param obj2: The object to merge.
6294 \index{merge() (src.pyconf.ConfigMerger method)}
6296 \begin{fulllineitems}
6297 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigMerger.merge}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{merge}}}{\emph{merged}, \emph{mergee}}{}
6298 Merge two configurations. The second configuration is unchanged,
6299 and the first is changed to reflect the results of the merge.
6301 @param merged: The configuration to merge into.
6302 @type merged: L\{Config\}.
6303 @param mergee: The configuration to merge.
6304 @type mergee: L\{Config\}.
6308 \index{mergeMapping() (src.pyconf.ConfigMerger method)}
6310 \begin{fulllineitems}
6311 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigMerger.mergeMapping}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{mergeMapping}}}{\emph{map1}, \emph{map2}}{}
6312 Merge two mappings recursively. The second mapping is unchanged,
6313 and the first is changed to reflect the results of the merge.
6315 @param map1: The mapping to merge into.
6316 @type map1: L\{Mapping\}.
6317 @param map2: The mapping to merge.
6318 @type map2: L\{Mapping\}.
6322 \index{mergeSequence() (src.pyconf.ConfigMerger method)}
6324 \begin{fulllineitems}
6325 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigMerger.mergeSequence}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{mergeSequence}}}{\emph{seq1}, \emph{seq2}}{}
6326 Merge two sequences. The second sequence is unchanged,
6327 and the first is changed to have the elements of the second
6330 @param seq1: The sequence to merge into.
6331 @type seq1: L\{Sequence\}.
6332 @param seq2: The sequence to merge.
6333 @type seq2: L\{Sequence\}.
6337 \index{overwriteKeys() (src.pyconf.ConfigMerger method)}
6339 \begin{fulllineitems}
6340 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigMerger.overwriteKeys}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{overwriteKeys}}}{\emph{map1}, \emph{seq2}}{}
6341 Renint variables. The second mapping is unchanged,
6342 and the first is changed depending the keys of the second mapping.
6343 @param map1: The mapping to reinit keys into.
6344 @type map1: L\{Mapping\}.
6345 @param map2: The mapping container reinit information.
6346 @type map2: L\{Mapping\}.
6353 \index{ConfigOutputStream (class in src.pyconf)}
6355 \begin{fulllineitems}
6356 \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}}{}
6357 Bases: \sphinxcode{\sphinxupquote{object}}
6359 An output stream which can write either ANSI files with default encoding
6360 or Unicode files with BOMs.
6362 Handles UTF-8, UTF-16LE, UTF-16BE. Could handle UTF-32 if Python had
6364 \index{close() (src.pyconf.ConfigOutputStream method)}
6366 \begin{fulllineitems}
6367 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigOutputStream.close}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{close}}}{}{}
6370 \index{flush() (src.pyconf.ConfigOutputStream method)}
6372 \begin{fulllineitems}
6373 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigOutputStream.flush}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{flush}}}{}{}
6376 \index{write() (src.pyconf.ConfigOutputStream method)}
6378 \begin{fulllineitems}
6379 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigOutputStream.write}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{write}}}{\emph{data}}{}
6385 \index{ConfigReader (class in src.pyconf)}
6387 \begin{fulllineitems}
6388 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{ConfigReader}}}{\emph{config}}{}
6389 Bases: \sphinxcode{\sphinxupquote{object}}
6391 This internal class implements a parser for configurations.
6392 \index{getChar() (src.pyconf.ConfigReader method)}
6394 \begin{fulllineitems}
6395 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.getChar}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{getChar}}}{}{}
6396 Get the next char from the stream. Update line and column numbers
6399 @return: The next character from the stream.
6404 \index{getToken() (src.pyconf.ConfigReader method)}
6406 \begin{fulllineitems}
6407 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.getToken}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{getToken}}}{}{}
6408 Get a token from the stream. String values are returned in a form
6409 where you need to eval() the returned value to get the actual
6410 string. The return value is (token\_type, token\_value).
6412 Multiline string tokenizing is thanks to David Janes (BlogMatrix)
6414 @return: The next token.
6415 @rtype: A token tuple.
6419 \index{load() (src.pyconf.ConfigReader method)}
6421 \begin{fulllineitems}
6422 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.load}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{load}}}{\emph{stream}, \emph{parent=None}, \emph{suffix=None}}{}
6423 Load the configuration from the specified stream.
6425 @param stream: A stream from which to load the configuration.
6426 @type stream: A stream (file-like object).
6427 @param parent: The parent of the configuration (to which this reader
6428 belongs) in the hierarchy. Specified when the configuration is
6429 included in another one.
6430 @type parent: A L\{Container\} instance.
6431 @param suffix: The suffix of this configuration in the parent
6432 configuration. Should be specified whenever the parent is not None.
6433 @raise ConfigError: If parent is specified but suffix is not.
6434 @raise ConfigFormatError: If there are syntax errors in the stream.
6438 \index{location() (src.pyconf.ConfigReader method)}
6440 \begin{fulllineitems}
6441 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.location}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{location}}}{}{}
6442 Return the current location (filename, line, column) in the stream
6445 Used when printing error messages,
6447 @return: A string representing a location in the stream being read.
6452 \index{match() (src.pyconf.ConfigReader method)}
6454 \begin{fulllineitems}
6455 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.match}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{match}}}{\emph{t}}{}
6456 Ensure that the current token type matches the specified value, and
6457 advance to the next token.
6459 @param t: The token type to match.
6460 @type t: A valid token type.
6461 @return: The token which was last read from the stream before this
6463 @rtype: a token tuple - see L\{getToken\}.
6464 @raise ConfigFormatError: If the token does not match what’s expected.
6468 \index{parseFactor() (src.pyconf.ConfigReader method)}
6470 \begin{fulllineitems}
6471 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseFactor}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseFactor}}}{}{}
6472 Parse a factor in an multiplicative expression (a * b, a / b, a \% b)
6474 @return: the parsed factor
6476 @raise ConfigFormatError: if a syntax error is found.
6480 \index{parseKeyValuePair() (src.pyconf.ConfigReader method)}
6482 \begin{fulllineitems}
6483 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseKeyValuePair}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseKeyValuePair}}}{\emph{parent}}{}
6484 Parse a key-value pair, and add it to the provided L\{Mapping\}.
6486 @param parent: The mapping to add entries to.
6487 @type parent: A L\{Mapping\} instance.
6488 @raise ConfigFormatError: if a syntax error is found.
6492 \index{parseMapping() (src.pyconf.ConfigReader method)}
6494 \begin{fulllineitems}
6495 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseMapping}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseMapping}}}{\emph{parent}, \emph{suffix}}{}
6498 @param parent: The container to which the mapping will be added.
6499 @type parent: A L\{Container\} instance.
6500 @param suffix: The suffix for the value.
6502 @return: a L\{Mapping\} instance representing the mapping.
6503 @rtype: L\{Mapping\}
6504 @raise ConfigFormatError: if a syntax error is found.
6508 \index{parseMappingBody() (src.pyconf.ConfigReader method)}
6510 \begin{fulllineitems}
6511 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseMappingBody}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseMappingBody}}}{\emph{parent}}{}
6512 Parse the internals of a mapping, and add entries to the provided
6515 @param parent: The mapping to add entries to.
6516 @type parent: A L\{Mapping\} instance.
6520 \index{parseReference() (src.pyconf.ConfigReader method)}
6522 \begin{fulllineitems}
6523 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseReference}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseReference}}}{\emph{type}}{}
6526 @return: the parsed reference
6527 @rtype: L\{Reference\}
6528 @raise ConfigFormatError: if a syntax error is found.
6532 \index{parseScalar() (src.pyconf.ConfigReader method)}
6534 \begin{fulllineitems}
6535 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseScalar}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseScalar}}}{}{}
6536 Parse a scalar - a terminal value such as a string or number, or
6537 an L\{Expression\} or L\{Reference\}.
6539 @return: the parsed scalar
6541 @raise ConfigFormatError: if a syntax error is found.
6545 \index{parseSequence() (src.pyconf.ConfigReader method)}
6547 \begin{fulllineitems}
6548 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseSequence}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseSequence}}}{\emph{parent}, \emph{suffix}}{}
6551 @param parent: The container to which the sequence will be added.
6552 @type parent: A L\{Container\} instance.
6553 @param suffix: The suffix for the value.
6555 @return: a L\{Sequence\} instance representing the sequence.
6556 @rtype: L\{Sequence\}
6557 @raise ConfigFormatError: if a syntax error is found.
6561 \index{parseSuffix() (src.pyconf.ConfigReader method)}
6563 \begin{fulllineitems}
6564 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseSuffix}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseSuffix}}}{\emph{ref}}{}
6565 Parse a reference suffix.
6567 @param ref: The reference of which this suffix is a part.
6568 @type ref: L\{Reference\}.
6569 @raise ConfigFormatError: if a syntax error is found.
6573 \index{parseTerm() (src.pyconf.ConfigReader method)}
6575 \begin{fulllineitems}
6576 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseTerm}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseTerm}}}{}{}
6577 Parse a term in an additive expression (a + b, a - b)
6579 @return: the parsed term
6581 @raise ConfigFormatError: if a syntax error is found.
6585 \index{parseValue() (src.pyconf.ConfigReader method)}
6587 \begin{fulllineitems}
6588 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseValue}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseValue}}}{\emph{parent}, \emph{suffix}}{}
6591 @param parent: The container to which the value will be added.
6592 @type parent: A L\{Container\} instance.
6593 @param suffix: The suffix for the value.
6597 @raise ConfigFormatError: if a syntax error is found.
6601 \index{setStream() (src.pyconf.ConfigReader method)}
6603 \begin{fulllineitems}
6604 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.setStream}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{setStream}}}{\emph{stream}}{}
6605 Set the stream to the specified value, and prepare to read from it.
6607 @param stream: A stream from which to load the configuration.
6608 @type stream: A stream (file-like object).
6615 \index{ConfigResolutionError}
6617 \begin{fulllineitems}
6618 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigResolutionError}}\pysigline{\sphinxbfcode{\sphinxupquote{exception }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{ConfigResolutionError}}}
6619 Bases: {\hyperref[\detokenize{commands/apidoc/src:src.pyconf.ConfigError}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.pyconf.ConfigError}}}}} (\autopageref*{\detokenize{commands/apidoc/src:src.pyconf.ConfigError}})
6621 This is the base class of exceptions raised due to semantic errors in
6626 \index{Container (class in src.pyconf)}
6628 \begin{fulllineitems}
6629 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Container}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{Container}}}{\emph{parent}}{}
6630 Bases: \sphinxcode{\sphinxupquote{object}}
6632 This internal class is the base class for mappings and sequences.
6634 @ivar path: A string which describes how to get
6635 to this instance from the root of the hierarchy.
6639 \fvset{hllines={, ,}}%
6640 \begin{sphinxVerbatim}[commandchars=\\\{\}]
6641 \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}
6642 \end{sphinxVerbatim}
6643 \index{evaluate() (src.pyconf.Container method)}
6645 \begin{fulllineitems}
6646 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Container.evaluate}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{evaluate}}}{\emph{item}}{}
6647 Evaluate items which are instances of L\{Reference\} or L\{Expression\}.
6649 L\{Reference\} instances are evaluated using L\{Reference.resolve\},
6650 and L\{Expression\} instances are evaluated using
6651 L\{Expression.evaluate\}.
6653 @param item: The item to be evaluated.
6655 @return: If the item is an instance of L\{Reference\} or L\{Expression\},
6656 the evaluated value is returned, otherwise the item is returned
6661 \index{setPath() (src.pyconf.Container method)}
6663 \begin{fulllineitems}
6664 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Container.setPath}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{setPath}}}{\emph{path}}{}
6665 Set the path for this instance.
6666 @param path: The path - a string which describes how to get
6667 to this instance from the root of the hierarchy.
6672 \index{writeToStream() (src.pyconf.Container method)}
6674 \begin{fulllineitems}
6675 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Container.writeToStream}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{writeToStream}}}{\emph{stream}, \emph{indent}, \emph{container}}{}
6676 Write this instance to a stream at the specified indentation level.
6678 Should be redefined in subclasses.
6680 @param stream: The stream to write to
6681 @type stream: A writable stream (file-like object)
6682 @param indent: The indentation level
6684 @param container: The container of this instance
6685 @type container: L\{Container\}
6686 @raise NotImplementedError: If a subclass does not override this
6690 \index{writeValue() (src.pyconf.Container method)}
6692 \begin{fulllineitems}
6693 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Container.writeValue}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{writeValue}}}{\emph{value}, \emph{stream}, \emph{indent}}{}
6699 \index{Expression (class in src.pyconf)}
6701 \begin{fulllineitems}
6702 \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}}{}
6703 Bases: \sphinxcode{\sphinxupquote{object}}
6705 This internal class implements a value which is obtained by evaluating an expression.
6706 \index{evaluate() (src.pyconf.Expression method)}
6708 \begin{fulllineitems}
6709 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Expression.evaluate}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{evaluate}}}{\emph{container}}{}
6710 Evaluate this instance in the context of a container.
6712 @param container: The container to evaluate in from.
6713 @type container: L\{Container\}
6714 @return: The evaluated value.
6716 @raise ConfigResolutionError: If evaluation fails.
6717 @raise ZeroDivideError: If division by zero occurs.
6718 @raise TypeError: If the operation is invalid, e.g.
6719 subtracting one string from another.
6726 \index{Mapping (class in src.pyconf)}
6728 \begin{fulllineitems}
6729 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Mapping}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{Mapping}}}{\emph{parent=None}}{}
6730 Bases: {\hyperref[\detokenize{commands/apidoc/src:src.pyconf.Container}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.pyconf.Container}}}}} (\autopageref*{\detokenize{commands/apidoc/src:src.pyconf.Container}})
6732 This internal class implements key-value mappings in configurations.
6733 \index{addMapping() (src.pyconf.Mapping method)}
6735 \begin{fulllineitems}
6736 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Mapping.addMapping}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{addMapping}}}{\emph{key}, \emph{value}, \emph{comment}, \emph{setting=False}}{}
6737 Add a key-value mapping with a comment.
6739 @param key: The key for the mapping.
6741 @param value: The value for the mapping.
6743 @param comment: The comment for the key (can be None).
6745 @param setting: If True, ignore clashes. This is set
6746 to true when called from L\{\_\_setattr\_\_\}.
6747 @raise ConfigFormatError: If an existing key is seen
6748 again and setting is False.
6752 \index{get() (src.pyconf.Mapping method)}
6754 \begin{fulllineitems}
6755 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Mapping.get}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get}}}{\emph{key}, \emph{default=None}}{}
6756 Allows a dictionary-style get operation.
6760 \index{iteritems() (src.pyconf.Mapping method)}
6762 \begin{fulllineitems}
6763 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Mapping.iteritems}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{iteritems}}}{}{}
6766 \index{iterkeys() (src.pyconf.Mapping method)}
6768 \begin{fulllineitems}
6769 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Mapping.iterkeys}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{iterkeys}}}{}{}
6772 \index{keys() (src.pyconf.Mapping method)}
6774 \begin{fulllineitems}
6775 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Mapping.keys}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{keys}}}{}{}
6776 Return the keys in a similar way to a dictionary.
6780 \index{writeToStream() (src.pyconf.Mapping method)}
6782 \begin{fulllineitems}
6783 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Mapping.writeToStream}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{writeToStream}}}{\emph{stream}, \emph{indent}, \emph{container}}{}
6784 Write this instance to a stream at the specified indentation level.
6786 Should be redefined in subclasses.
6788 @param stream: The stream to write to
6789 @type stream: A writable stream (file-like object)
6790 @param indent: The indentation level
6792 @param container: The container of this instance
6793 @type container: L\{Container\}
6800 \index{Reference (class in src.pyconf)}
6802 \begin{fulllineitems}
6803 \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}}{}
6804 Bases: \sphinxcode{\sphinxupquote{object}}
6806 This internal class implements a value which is a reference to another value.
6807 \index{addElement() (src.pyconf.Reference method)}
6809 \begin{fulllineitems}
6810 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Reference.addElement}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{addElement}}}{\emph{type}, \emph{ident}}{}
6811 Add an element to the reference.
6813 @param type: The type of reference.
6814 @type type: BACKTICK or DOLLAR
6815 @param ident: The identifier which continues the reference.
6820 \index{findConfig() (src.pyconf.Reference method)}
6822 \begin{fulllineitems}
6823 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Reference.findConfig}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{findConfig}}}{\emph{container}}{}
6824 Find the closest enclosing configuration to the specified container.
6826 @param container: The container to start from.
6827 @type container: L\{Container\}
6828 @return: The closest enclosing configuration, or None.
6833 \index{resolve() (src.pyconf.Reference method)}
6835 \begin{fulllineitems}
6836 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Reference.resolve}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{resolve}}}{\emph{container}}{}
6837 Resolve this instance in the context of a container.
6839 @param container: The container to resolve from.
6840 @type container: L\{Container\}
6841 @return: The resolved value.
6843 @raise ConfigResolutionError: If resolution fails.
6850 \index{Sequence (class in src.pyconf)}
6852 \begin{fulllineitems}
6853 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Sequence}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{Sequence}}}{\emph{parent=None}}{}
6854 Bases: {\hyperref[\detokenize{commands/apidoc/src:src.pyconf.Container}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.pyconf.Container}}}}} (\autopageref*{\detokenize{commands/apidoc/src:src.pyconf.Container}})
6856 This internal class implements a value which is a sequence of other values.
6857 \index{Sequence.SeqIter (class in src.pyconf)}
6859 \begin{fulllineitems}
6860 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Sequence.SeqIter}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxbfcode{\sphinxupquote{SeqIter}}}{\emph{seq}}{}
6861 Bases: \sphinxcode{\sphinxupquote{object}}
6863 This internal class implements an iterator for a L\{Sequence\} instance.
6864 \index{next() (src.pyconf.Sequence.SeqIter method)}
6866 \begin{fulllineitems}
6867 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Sequence.SeqIter.next}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{next}}}{}{}
6873 \index{append() (src.pyconf.Sequence method)}
6875 \begin{fulllineitems}
6876 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Sequence.append}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append}}}{\emph{item}, \emph{comment}}{}
6877 Add an item to the sequence.
6879 @param item: The item to add.
6881 @param comment: A comment for the item.
6886 \index{writeToStream() (src.pyconf.Sequence method)}
6888 \begin{fulllineitems}
6889 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Sequence.writeToStream}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{writeToStream}}}{\emph{stream}, \emph{indent}, \emph{container}}{}
6890 Write this instance to a stream at the specified indentation level.
6892 Should be redefined in subclasses.
6894 @param stream: The stream to write to
6895 @type stream: A writable stream (file-like object)
6896 @param indent: The indentation level
6898 @param container: The container of this instance
6899 @type container: L\{Container\}
6906 \index{deepCopyMapping() (in module src.pyconf)}
6908 \begin{fulllineitems}
6909 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.deepCopyMapping}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{deepCopyMapping}}}{\emph{inMapping}}{}
6912 \index{defaultMergeResolve() (in module src.pyconf)}
6914 \begin{fulllineitems}
6915 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.defaultMergeResolve}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{defaultMergeResolve}}}{\emph{map1}, \emph{map2}, \emph{key}}{}
6916 A default resolver for merge conflicts.
6917 Returns a string indicating what action to take to resolve the conflict.
6919 @param map1: The map being merged into.
6920 @type map1: L\{Mapping\}.
6921 @param map2: The map being used as the merge operand.
6922 @type map2: L\{Mapping\}.
6923 @param key: The key in map2 (which also exists in map1).
6926 \item[{@return: One of “merge”, “append”, “mismatch” or “overwrite”}] \leavevmode
6927 indicating what action should be taken. This should
6928 be appropriate to the objects being merged - e.g.
6929 there is no point returning “merge” if the two objects
6930 are instances of L\{Sequence\}.
6938 \index{defaultStreamOpener() (in module src.pyconf)}
6940 \begin{fulllineitems}
6941 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.defaultStreamOpener}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{defaultStreamOpener}}}{\emph{name}}{}
6942 This function returns a read-only stream, given its name. The name passed
6943 in should correspond to an existing stream, otherwise an exception will be
6946 This is the default value of L\{streamOpener\}; assign your own callable to
6947 streamOpener to return streams based on names. For example, you could use
6950 @param name: The name of a stream, most commonly a file name.
6952 @return: A stream with the specified name.
6953 @rtype: A read-only stream (file-like object)
6957 \index{isWord() (in module src.pyconf)}
6959 \begin{fulllineitems}
6960 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.isWord}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{isWord}}}{\emph{s}}{}
6961 See if a passed-in value is an identifier. If the value passed in is not a
6962 string, False is returned. An identifier consists of alphanumerics or
6963 underscore characters.
6967 \fvset{hllines={, ,}}%
6968 \begin{sphinxVerbatim}[commandchars=\\\{\}]
6969 \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}
6970 \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}
6971 \PYG{n}{isWord}\PYG{p}{(}\PYG{l+m+mi}{9}\PYG{p}{)} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZgt{}} \PYG{k+kc}{False}
6972 \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}
6973 \end{sphinxVerbatim}
6975 @note: isWord(‘9abc’) will return True - not exactly correct, but adequate
6976 for the way it’s used here.
6978 @param s: The name to be tested
6980 @return: True if a word, else False
6985 \index{makePath() (in module src.pyconf)}
6987 \begin{fulllineitems}
6988 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.makePath}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{makePath}}}{\emph{prefix}, \emph{suffix}}{}
6989 Make a path from a prefix and suffix.
6992 makePath(‘’, ‘suffix’) -\textgreater{} ‘suffix’
6993 makePath(‘prefix’, ‘suffix’) -\textgreater{} ‘prefix.suffix’
6994 makePath(‘prefix’, ‘{[}1{]}’) -\textgreater{} ‘prefix{[}1{]}’
6996 @param prefix: The prefix to use. If it evaluates as false, the suffix is returned.
6998 @param suffix: The suffix to use. It is either an identifier or an index in brackets.
7000 @return: The path concatenation of prefix and suffix, with adot if the suffix is not a bracketed index.
7005 \index{overwriteMergeResolve() (in module src.pyconf)}
7007 \begin{fulllineitems}
7008 \phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.overwriteMergeResolve}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{overwriteMergeResolve}}}{\emph{map1}, \emph{map2}, \emph{key}}{}
7009 An overwriting resolver for merge conflicts. Calls L\{defaultMergeResolve\},
7010 but where a “mismatch” is detected, returns “overwrite” instead.
7012 @param map1: The map being merged into.
7013 @type map1: L\{Mapping\}.
7014 @param map2: The map being used as the merge operand.
7015 @type map2: L\{Mapping\}.
7016 @param key: The key in map2 (which also exists in map1).
7023 \subsubsection{src.system module}
7024 \label{\detokenize{commands/apidoc/src:src-system-module}}\label{\detokenize{commands/apidoc/src:module-src.system}}\index{src.system (module)}
7025 In this file : all functions that do a system call,
7026 like open a browser or an editor, or call a git command
7027 \index{archive\_extract() (in module src.system)}
7029 \begin{fulllineitems}
7030 \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}}{}
7031 Extracts sources from an archive.
7032 \begin{quote}\begin{description}
7033 \item[{Parameters}] \leavevmode\begin{itemize}
7035 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{where}}) \textendash{} The path to the archive.
7038 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The path where to extract.
7041 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to use.
7045 \item[{Returns}] \leavevmode
7046 True if the extraction is successful
7048 \item[{Return type}] \leavevmode
7051 \end{description}\end{quote}
7055 \index{cvs\_extract() (in module src.system)}
7057 \begin{fulllineitems}
7058 \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}}{}
7059 Extracts sources from a cvs repository.
7060 \begin{quote}\begin{description}
7061 \item[{Parameters}] \leavevmode\begin{itemize}
7063 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{where}}) \textendash{} The cvs protocol.
7066 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The user to be used.
7069 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The remote cvs server.
7072 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{}
7077 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The tag.
7080 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The product.
7083 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The path where to extract.
7086 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to use.
7089 \sphinxstyleliteralstrong{\sphinxupquote{boolean}} (\sphinxstyleliteralemphasis{\sphinxupquote{checkout}}) \textendash{} If true use checkout cvs.
7092 \sphinxstyleliteralstrong{\sphinxupquote{src.environment.Environ}} (\sphinxstyleliteralemphasis{\sphinxupquote{environment}}) \textendash{} The environment to source when
7097 \item[{Returns}] \leavevmode
7098 True if the extraction is successful
7100 \item[{Return type}] \leavevmode
7103 \end{description}\end{quote}
7107 \index{git\_extract() (in module src.system)}
7109 \begin{fulllineitems}
7110 \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}}{}
7111 Extracts sources from a git repository.
7112 \begin{quote}\begin{description}
7113 \item[{Parameters}] \leavevmode\begin{itemize}
7115 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{where}}) \textendash{} The remote git repository.
7118 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The tag.
7121 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The path where to extract.
7124 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to use.
7127 \sphinxstyleliteralstrong{\sphinxupquote{src.environment.Environ}} (\sphinxstyleliteralemphasis{\sphinxupquote{environment}}) \textendash{} The environment to source when
7132 \item[{Returns}] \leavevmode
7133 True if the extraction is successful
7135 \item[{Return type}] \leavevmode
7138 \end{description}\end{quote}
7142 \index{show\_in\_editor() (in module src.system)}
7144 \begin{fulllineitems}
7145 \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}}{}
7146 open filePath using editor.
7147 \begin{quote}\begin{description}
7148 \item[{Parameters}] \leavevmode\begin{itemize}
7150 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{filePath}}) \textendash{} The editor to use.
7153 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The path to the file to open.
7157 \end{description}\end{quote}
7161 \index{svn\_extract() (in module src.system)}
7163 \begin{fulllineitems}
7164 \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}}{}
7165 Extracts sources from a svn repository.
7166 \begin{quote}\begin{description}
7167 \item[{Parameters}] \leavevmode\begin{itemize}
7169 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{where}}) \textendash{} The user to be used.
7172 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The remote git repository.
7175 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The tag.
7178 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The path where to extract.
7181 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to use.
7184 \sphinxstyleliteralstrong{\sphinxupquote{boolean}} (\sphinxstyleliteralemphasis{\sphinxupquote{checkout}}) \textendash{} If true use checkout svn.
7187 \sphinxstyleliteralstrong{\sphinxupquote{src.environment.Environ}} (\sphinxstyleliteralemphasis{\sphinxupquote{environment}}) \textendash{} The environment to source when
7192 \item[{Returns}] \leavevmode
7193 True if the extraction is successful
7195 \item[{Return type}] \leavevmode
7198 \end{description}\end{quote}
7204 \subsubsection{src.template module}
7205 \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)}
7207 \begin{fulllineitems}
7208 \phantomsection\label{\detokenize{commands/apidoc/src:src.template.MyTemplate}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.template.}}\sphinxbfcode{\sphinxupquote{MyTemplate}}}{\emph{template}}{}
7209 Bases: \sphinxcode{\sphinxupquote{string.Template}}
7210 \index{delimiter (src.template.MyTemplate attribute)}
7212 \begin{fulllineitems}
7213 \phantomsection\label{\detokenize{commands/apidoc/src:src.template.MyTemplate.delimiter}}\pysigline{\sphinxbfcode{\sphinxupquote{delimiter}}\sphinxbfcode{\sphinxupquote{ = '\textbackslash{}xc2\textbackslash{}xa4'}}}
7216 \index{pattern (src.template.MyTemplate attribute)}
7218 \begin{fulllineitems}
7219 \phantomsection\label{\detokenize{commands/apidoc/src:src.template.MyTemplate.pattern}}\pysigline{\sphinxbfcode{\sphinxupquote{pattern}}\sphinxbfcode{\sphinxupquote{ = \textless{}\_sre.SRE\_Pattern object\textgreater{}}}}
7225 \index{substitute() (in module src.template)}
7227 \begin{fulllineitems}
7228 \phantomsection\label{\detokenize{commands/apidoc/src:src.template.substitute}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.template.}}\sphinxbfcode{\sphinxupquote{substitute}}}{\emph{template\_file}, \emph{subst\_dic}}{}
7233 \subsubsection{src.test\_module module}
7234 \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)}
7236 \begin{fulllineitems}
7237 \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)}
7239 \begin{fulllineitems}
7240 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.generate_launching_commands}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{generate\_launching\_commands}}}{}{}
7243 \index{generate\_script() (src.test\_module.Test method)}
7245 \begin{fulllineitems}
7246 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.generate_script}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{generate\_script}}}{\emph{listTest}, \emph{script\_path}, \emph{ignoreList}}{}
7249 \index{get\_test\_timeout() (src.test\_module.Test method)}
7251 \begin{fulllineitems}
7252 \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}}{}
7255 \index{get\_tmp\_dir() (src.test\_module.Test method)}
7257 \begin{fulllineitems}
7258 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.get_tmp_dir}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get\_tmp\_dir}}}{}{}
7261 \index{prepare\_testbase() (src.test\_module.Test method)}
7263 \begin{fulllineitems}
7264 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.prepare_testbase}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepare\_testbase}}}{\emph{test\_base\_name}}{}
7267 \index{prepare\_testbase\_from\_dir() (src.test\_module.Test method)}
7269 \begin{fulllineitems}
7270 \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}}{}
7273 \index{prepare\_testbase\_from\_git() (src.test\_module.Test method)}
7275 \begin{fulllineitems}
7276 \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}}{}
7279 \index{prepare\_testbase\_from\_svn() (src.test\_module.Test method)}
7281 \begin{fulllineitems}
7282 \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}}{}
7285 \index{read\_results() (src.test\_module.Test method)}
7287 \begin{fulllineitems}
7288 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.read_results}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{read\_results}}}{\emph{listTest}, \emph{has\_timed\_out}}{}
7291 \index{run\_all\_tests() (src.test\_module.Test method)}
7293 \begin{fulllineitems}
7294 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.run_all_tests}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{run\_all\_tests}}}{}{}
7297 \index{run\_grid\_tests() (src.test\_module.Test method)}
7299 \begin{fulllineitems}
7300 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.run_grid_tests}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{run\_grid\_tests}}}{}{}
7303 \index{run\_script() (src.test\_module.Test method)}
7305 \begin{fulllineitems}
7306 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.run_script}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{run\_script}}}{\emph{script\_name}}{}
7309 \index{run\_session\_tests() (src.test\_module.Test method)}
7311 \begin{fulllineitems}
7312 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.run_session_tests}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{run\_session\_tests}}}{}{}
7315 \index{run\_testbase\_tests() (src.test\_module.Test method)}
7317 \begin{fulllineitems}
7318 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.run_testbase_tests}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{run\_testbase\_tests}}}{}{}
7321 \index{run\_tests() (src.test\_module.Test method)}
7323 \begin{fulllineitems}
7324 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.run_tests}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{run\_tests}}}{\emph{listTest}, \emph{ignoreList}}{}
7327 \index{search\_known\_errors() (src.test\_module.Test method)}
7329 \begin{fulllineitems}
7330 \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}}{}
7333 \index{write\_test\_margin() (src.test\_module.Test method)}
7335 \begin{fulllineitems}
7336 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.write_test_margin}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{write\_test\_margin}}}{\emph{tab}}{}
7342 \index{getTmpDirDEFAULT() (in module src.test\_module)}
7344 \begin{fulllineitems}
7345 \phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.getTmpDirDEFAULT}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.test\_module.}}\sphinxbfcode{\sphinxupquote{getTmpDirDEFAULT}}}{}{}
7350 \subsubsection{src.xmlManager module}
7351 \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)}
7353 \begin{fulllineitems}
7354 \phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.ReadXmlFile}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.xmlManager.}}\sphinxbfcode{\sphinxupquote{ReadXmlFile}}}{\emph{filePath}}{}
7355 Bases: \sphinxcode{\sphinxupquote{object}}
7357 Class to manage reading of an xml log file
7358 \index{getRootAttrib() (src.xmlManager.ReadXmlFile method)}
7360 \begin{fulllineitems}
7361 \phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.ReadXmlFile.getRootAttrib}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{getRootAttrib}}}{}{}
7362 Get the attibutes of the self.xmlroot
7363 \begin{quote}\begin{description}
7364 \item[{Returns}] \leavevmode
7365 The attributes of the root node
7367 \item[{Return type}] \leavevmode
7370 \end{description}\end{quote}
7374 \index{get\_attrib() (src.xmlManager.ReadXmlFile method)}
7376 \begin{fulllineitems}
7377 \phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.ReadXmlFile.get_attrib}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get\_attrib}}}{\emph{node\_name}}{}
7378 Get the attibutes of the node node\_name in self.xmlroot
7379 \begin{quote}\begin{description}
7380 \item[{Parameters}] \leavevmode
7381 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{node\_name}}) \textendash{} the name of the node
7383 \item[{Returns}] \leavevmode
7384 the attibutes of the node node\_name in self.xmlroot
7386 \item[{Return type}] \leavevmode
7389 \end{description}\end{quote}
7393 \index{get\_node\_text() (src.xmlManager.ReadXmlFile method)}
7395 \begin{fulllineitems}
7396 \phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.ReadXmlFile.get_node_text}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get\_node\_text}}}{\emph{node}}{}~\begin{description}
7397 \item[{Get the text of the first node that has name }] \leavevmode
7398 that corresponds to the parameter node
7401 \begin{quote}\begin{description}
7402 \item[{Parameters}] \leavevmode
7403 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{node}}) \textendash{} the name of the node from which get the text
7405 \item[{Returns}] \leavevmode
7406 the text of the first node that has name
7407 that corresponds to the parameter node
7409 \item[{Return type}] \leavevmode
7412 \end{description}\end{quote}
7419 \index{XmlLogFile (class in src.xmlManager)}
7421 \begin{fulllineitems}
7422 \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=\{\}}}{}
7423 Bases: \sphinxcode{\sphinxupquote{object}}
7425 Class to manage writing in salomeTools xml log file
7426 \index{add\_simple\_node() (src.xmlManager.XmlLogFile method)}
7428 \begin{fulllineitems}
7429 \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=\{\}}}{}
7430 Add a node with some attibutes and text to the root node.
7431 \begin{quote}\begin{description}
7432 \item[{Parameters}] \leavevmode\begin{itemize}
7434 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{text}}) \textendash{} the name of the node to add
7437 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the text of the node
7440 \sphinxstyleliteralstrong{\sphinxupquote{dict}} (\sphinxstyleliteralemphasis{\sphinxupquote{attrib}}) \textendash{} the dictionary containing the
7441 attribute of the new node
7445 \end{description}\end{quote}
7449 \index{append\_node\_attrib() (src.xmlManager.XmlLogFile method)}
7451 \begin{fulllineitems}
7452 \phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.XmlLogFile.append_node_attrib}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append\_node\_attrib}}}{\emph{node\_name}, \emph{attrib}}{}
7453 Append a new attributes to the node that has node\_name as name
7454 \begin{quote}\begin{description}
7455 \item[{Parameters}] \leavevmode\begin{itemize}
7457 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{node\_name}}) \textendash{} The name of the node on which append text
7460 \sphinxstyleliteralstrong{\sphinxupquote{dixt}} (\sphinxstyleliteralemphasis{\sphinxupquote{attrib}}) \textendash{} The attrib to append
7464 \end{description}\end{quote}
7468 \index{append\_node\_text() (src.xmlManager.XmlLogFile method)}
7470 \begin{fulllineitems}
7471 \phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.XmlLogFile.append_node_text}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append\_node\_text}}}{\emph{node\_name}, \emph{text}}{}
7472 Append a new text to the node that has node\_name as name
7473 \begin{quote}\begin{description}
7474 \item[{Parameters}] \leavevmode\begin{itemize}
7476 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{text}}) \textendash{} The name of the node on which append text
7479 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The text to append
7483 \end{description}\end{quote}
7487 \index{write\_tree() (src.xmlManager.XmlLogFile method)}
7489 \begin{fulllineitems}
7490 \phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.XmlLogFile.write_tree}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{write\_tree}}}{\emph{stylesheet=None}, \emph{file\_path=None}}{}
7491 Write the xml tree in the log file path. Add the stylesheet if asked.
7492 \begin{quote}\begin{description}
7493 \item[{Parameters}] \leavevmode
7494 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{stylesheet}}) \textendash{} The stylesheet to apply to the xml file
7496 \end{description}\end{quote}
7503 \index{add\_simple\_node() (in module src.xmlManager)}
7505 \begin{fulllineitems}
7506 \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=\{\}}}{}
7507 Add a node with some attibutes and text to the root node.
7508 \begin{quote}\begin{description}
7509 \item[{Parameters}] \leavevmode\begin{itemize}
7511 \sphinxstyleliteralstrong{\sphinxupquote{etree.Element}} (\sphinxstyleliteralemphasis{\sphinxupquote{root\_node}}) \textendash{} the Etree element where to add the new node
7514 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{text}}) \textendash{} the name of the node to add
7517 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the text of the node
7520 \sphinxstyleliteralstrong{\sphinxupquote{dict}} (\sphinxstyleliteralemphasis{\sphinxupquote{attrib}}) \textendash{} the dictionary containing the
7521 attribute of the new node
7525 \end{description}\end{quote}
7529 \index{append\_node\_attrib() (in module src.xmlManager)}
7531 \begin{fulllineitems}
7532 \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}}{}
7533 Append a new attributes to the node that has node\_name as name
7534 \begin{quote}\begin{description}
7535 \item[{Parameters}] \leavevmode\begin{itemize}
7537 \sphinxstyleliteralstrong{\sphinxupquote{etree.Element}} (\sphinxstyleliteralemphasis{\sphinxupquote{root\_node}}) \textendash{} the Etree element
7538 where to append the new attibutes
7541 \sphinxstyleliteralstrong{\sphinxupquote{dixt}} (\sphinxstyleliteralemphasis{\sphinxupquote{attrib}}) \textendash{} The attrib to append
7545 \end{description}\end{quote}
7549 \index{find\_node\_by\_attrib() (in module src.xmlManager)}
7551 \begin{fulllineitems}
7552 \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}
7553 \item[{Find the nfirst ode from xmlroot that has name name\_node and that has in }] \leavevmode
7554 its attributes \{key : value\}. Return the node
7557 \begin{quote}\begin{description}
7558 \item[{Parameters}] \leavevmode\begin{itemize}
7560 \sphinxstyleliteralstrong{\sphinxupquote{etree.Element}} (\sphinxstyleliteralemphasis{\sphinxupquote{xmlroot}}) \textendash{} the Etree element where to search
7563 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the name of node to search
7566 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the key to search
7569 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to search
7573 \item[{Returns}] \leavevmode
7576 \item[{Return type}] \leavevmode
7577 xmlroot etree.Element
7579 \end{description}\end{quote}
7583 \index{write\_report() (in module src.xmlManager)}
7585 \begin{fulllineitems}
7586 \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}}{}
7587 Writes a report file from a XML tree.
7588 \begin{quote}\begin{description}
7589 \item[{Parameters}] \leavevmode\begin{itemize}
7591 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{stylesheet}}) \textendash{} The path to the file to create
7594 \sphinxstyleliteralstrong{\sphinxupquote{etree.Element}} (\sphinxstyleliteralemphasis{\sphinxupquote{xmlroot}}) \textendash{} the Etree element to write to the file
7597 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The stylesheet to add to the begin of the file
7601 \end{description}\end{quote}
7607 \subsubsection{Module contents}
7608 \label{\detokenize{commands/apidoc/src:module-src}}\label{\detokenize{commands/apidoc/src:module-contents}}\index{src (module)}
7609 initial imports and utilities methods for salomeTools
7610 \index{Path (class in src)}
7612 \begin{fulllineitems}
7613 \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)}
7615 \begin{fulllineitems}
7616 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.base}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{base}}}{}{}
7619 \index{chmod() (src.Path method)}
7621 \begin{fulllineitems}
7622 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.chmod}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{chmod}}}{\emph{mode}}{}
7625 \index{copy() (src.Path method)}
7627 \begin{fulllineitems}
7628 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.copy}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{copy}}}{\emph{path}, \emph{smart=False}}{}
7631 \index{copydir() (src.Path method)}
7633 \begin{fulllineitems}
7634 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.copydir}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{copydir}}}{\emph{dst}, \emph{smart=False}}{}
7637 \index{copyfile() (src.Path method)}
7639 \begin{fulllineitems}
7640 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.copyfile}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{copyfile}}}{\emph{path}}{}
7643 \index{copylink() (src.Path method)}
7645 \begin{fulllineitems}
7646 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.copylink}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{copylink}}}{\emph{path}}{}
7649 \index{dir() (src.Path method)}
7651 \begin{fulllineitems}
7652 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.dir}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{dir}}}{}{}
7655 \index{exists() (src.Path method)}
7657 \begin{fulllineitems}
7658 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.exists}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{exists}}}{}{}
7661 \index{isdir() (src.Path method)}
7663 \begin{fulllineitems}
7664 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.isdir}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{isdir}}}{}{}
7667 \index{isfile() (src.Path method)}
7669 \begin{fulllineitems}
7670 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.isfile}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{isfile}}}{}{}
7673 \index{islink() (src.Path method)}
7675 \begin{fulllineitems}
7676 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.islink}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{islink}}}{}{}
7679 \index{list() (src.Path method)}
7681 \begin{fulllineitems}
7682 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.list}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{list}}}{}{}
7685 \index{make() (src.Path method)}
7687 \begin{fulllineitems}
7688 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.make}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{make}}}{\emph{mode=None}}{}
7691 \index{readlink() (src.Path method)}
7693 \begin{fulllineitems}
7694 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.readlink}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{readlink}}}{}{}
7697 \index{rm() (src.Path method)}
7699 \begin{fulllineitems}
7700 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.rm}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{rm}}}{}{}
7703 \index{smartcopy() (src.Path method)}
7705 \begin{fulllineitems}
7706 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.smartcopy}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{smartcopy}}}{\emph{path}}{}
7709 \index{symlink() (src.Path method)}
7711 \begin{fulllineitems}
7712 \phantomsection\label{\detokenize{commands/apidoc/src:src.Path.symlink}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{symlink}}}{\emph{path}}{}
7718 \index{SatException}
7720 \begin{fulllineitems}
7721 \phantomsection\label{\detokenize{commands/apidoc/src:src.SatException}}\pysigline{\sphinxbfcode{\sphinxupquote{exception }}\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{SatException}}}
7722 Bases: \sphinxcode{\sphinxupquote{exceptions.Exception}}
7724 rename Exception Class
7728 \index{activate\_mesa\_property() (in module src)}
7730 \begin{fulllineitems}
7731 \phantomsection\label{\detokenize{commands/apidoc/src:src.activate_mesa_property}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{activate\_mesa\_property}}}{\emph{config}}{}
7732 Add mesa property into application properties
7733 \begin{quote}\begin{description}
7734 \item[{Parameters}] \leavevmode
7735 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The global configuration. It must have an application!
7737 \end{description}\end{quote}
7741 \index{check\_config\_has\_application() (in module src)}
7743 \begin{fulllineitems}
7744 \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}}{}
7745 check that the config has the key APPLICATION. Else raise an exception.
7746 \begin{quote}\begin{description}
7747 \item[{Parameters}] \leavevmode
7748 \sphinxstyleliteralstrong{\sphinxupquote{class 'common.pyconf.Config'}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The config.
7750 \end{description}\end{quote}
7754 \index{check\_config\_has\_profile() (in module src)}
7756 \begin{fulllineitems}
7757 \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}}{}
7758 check that the config has the key APPLICATION.profile.
7759 else, raise an exception.
7760 \begin{quote}\begin{description}
7761 \item[{Parameters}] \leavevmode
7762 \sphinxstyleliteralstrong{\sphinxupquote{class 'common.pyconf.Config'}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The config.
7764 \end{description}\end{quote}
7768 \index{config\_has\_application() (in module src)}
7770 \begin{fulllineitems}
7771 \phantomsection\label{\detokenize{commands/apidoc/src:src.config_has_application}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{config\_has\_application}}}{\emph{config}}{}
7774 \index{deepcopy\_list() (in module src)}
7776 \begin{fulllineitems}
7777 \phantomsection\label{\detokenize{commands/apidoc/src:src.deepcopy_list}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{deepcopy\_list}}}{\emph{input\_list}}{}
7778 Do a deep copy of a list
7779 \begin{quote}\begin{description}
7780 \item[{Parameters}] \leavevmode
7781 \sphinxstyleliteralstrong{\sphinxupquote{List}} (\sphinxstyleliteralemphasis{\sphinxupquote{input\_list}}) \textendash{} The list to copy
7783 \item[{Returns}] \leavevmode
7784 The copy of the list
7786 \item[{Return type}] \leavevmode
7789 \end{description}\end{quote}
7793 \index{ensure\_path\_exists() (in module src)}
7795 \begin{fulllineitems}
7796 \phantomsection\label{\detokenize{commands/apidoc/src:src.ensure_path_exists}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{ensure\_path\_exists}}}{\emph{p}}{}
7797 Create a path if not existing
7798 \begin{quote}\begin{description}
7799 \item[{Parameters}] \leavevmode
7800 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{p}}) \textendash{} The path.
7802 \end{description}\end{quote}
7806 \index{find\_file\_in\_lpath() (in module src)}
7808 \begin{fulllineitems}
7809 \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=''}}{}
7810 Find in all the directories in lpath list the file that has the same name
7813 then return the full path of the file
7816 The additional\_dir (optional) is the name of the directory to add to all
7818 \begin{quote}\begin{description}
7819 \item[{Parameters}] \leavevmode\begin{itemize}
7821 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{additional\_dir}}) \textendash{} The file name to search
7824 \sphinxstyleliteralstrong{\sphinxupquote{List}} (\sphinxstyleliteralemphasis{\sphinxupquote{lpath}}) \textendash{} The list of directories where to search
7827 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The name of the additional directory
7831 \item[{Returns}] \leavevmode
7832 the full path of the file or False if not found
7834 \item[{Return type}] \leavevmode
7837 \end{description}\end{quote}
7841 \index{get\_base\_path() (in module src)}
7843 \begin{fulllineitems}
7844 \phantomsection\label{\detokenize{commands/apidoc/src:src.get_base_path}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{get\_base\_path}}}{\emph{config}}{}
7845 Returns the path of the products base.
7846 \begin{quote}\begin{description}
7847 \item[{Parameters}] \leavevmode
7848 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The global Config instance.
7850 \item[{Returns}] \leavevmode
7851 The path of the products base.
7853 \item[{Return type}] \leavevmode
7856 \end{description}\end{quote}
7860 \index{get\_cfg\_param() (in module src)}
7862 \begin{fulllineitems}
7863 \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}}{}
7864 eearch for param\_name value in config.
7865 if param\_name is not in config
7866 then return default,
7867 else return the found value
7868 \begin{quote}\begin{description}
7869 \item[{Parameters}] \leavevmode\begin{itemize}
7871 \sphinxstyleliteralstrong{\sphinxupquote{class 'common.pyconf.Config'}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The config.
7874 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{default}}) \textendash{} the name of the parameter to get the value
7877 \sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The value to return if param\_name is not in config
7881 \item[{Returns}] \leavevmode
7882 see initial description of the function
7884 \item[{Return type}] \leavevmode
7887 \end{description}\end{quote}
7891 \index{get\_launcher\_name() (in module src)}
7893 \begin{fulllineitems}
7894 \phantomsection\label{\detokenize{commands/apidoc/src:src.get_launcher_name}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{get\_launcher\_name}}}{\emph{config}}{}
7895 Returns the name of salome launcher.
7896 \begin{quote}\begin{description}
7897 \item[{Parameters}] \leavevmode
7898 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The global Config instance.
7900 \item[{Returns}] \leavevmode
7901 The name of salome launcher.
7903 \item[{Return type}] \leavevmode
7906 \end{description}\end{quote}
7910 \index{get\_log\_path() (in module src)}
7912 \begin{fulllineitems}
7913 \phantomsection\label{\detokenize{commands/apidoc/src:src.get_log_path}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{get\_log\_path}}}{\emph{config}}{}
7914 Returns the path of the logs.
7915 \begin{quote}\begin{description}
7916 \item[{Parameters}] \leavevmode
7917 \sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The global Config instance.
7919 \item[{Returns}] \leavevmode
7920 The path of the logs.
7922 \item[{Return type}] \leavevmode
7925 \end{description}\end{quote}
7929 \index{get\_property\_in\_product\_cfg() (in module src)}
7931 \begin{fulllineitems}
7932 \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}}{}
7935 \index{get\_salome\_version() (in module src)}
7937 \begin{fulllineitems}
7938 \phantomsection\label{\detokenize{commands/apidoc/src:src.get_salome_version}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{get\_salome\_version}}}{\emph{config}}{}
7941 \index{get\_tmp\_filename() (in module src)}
7943 \begin{fulllineitems}
7944 \phantomsection\label{\detokenize{commands/apidoc/src:src.get_tmp_filename}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{get\_tmp\_filename}}}{\emph{cfg}, \emph{name}}{}
7947 \index{handleRemoveReadonly() (in module src)}
7949 \begin{fulllineitems}
7950 \phantomsection\label{\detokenize{commands/apidoc/src:src.handleRemoveReadonly}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{handleRemoveReadonly}}}{\emph{func}, \emph{path}, \emph{exc}}{}
7953 \index{merge\_dicts() (in module src)}
7955 \begin{fulllineitems}
7956 \phantomsection\label{\detokenize{commands/apidoc/src:src.merge_dicts}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{merge\_dicts}}}{\emph{*dict\_args}}{}
7957 Given any number of dicts, shallow copy and merge into a new dict,
7958 precedence goes to key value pairs in latter dicts.
7962 \index{only\_numbers() (in module src)}
7964 \begin{fulllineitems}
7965 \phantomsection\label{\detokenize{commands/apidoc/src:src.only_numbers}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{only\_numbers}}}{\emph{str\_num}}{}
7968 \index{parse\_date() (in module src)}
7970 \begin{fulllineitems}
7971 \phantomsection\label{\detokenize{commands/apidoc/src:src.parse_date}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{parse\_date}}}{\emph{date}}{}
7972 Transform YYYYMMDD\_hhmmss into YYYY-MM-DD hh:mm:ss.
7973 \begin{quote}\begin{description}
7974 \item[{Parameters}] \leavevmode
7975 \sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{date}}) \textendash{} The date to transform
7977 \item[{Returns}] \leavevmode
7978 The date in the new format
7980 \item[{Return type}] \leavevmode
7983 \end{description}\end{quote}
7987 \index{print\_info() (in module src)}
7989 \begin{fulllineitems}
7990 \phantomsection\label{\detokenize{commands/apidoc/src:src.print_info}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{print\_info}}}{\emph{logger}, \emph{info}}{}
7991 Prints the tuples that are in info variable in a formatted way.
7992 \begin{quote}\begin{description}
7993 \item[{Parameters}] \leavevmode\begin{itemize}
7995 \sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logging instance to use for the prints.
7998 \sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{info}}) \textendash{} The list of tuples to display
8002 \end{description}\end{quote}
8006 \index{read\_config\_from\_a\_file() (in module src)}
8008 \begin{fulllineitems}
8009 \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}}{}
8012 \index{remove\_item\_from\_list() (in module src)}
8014 \begin{fulllineitems}
8015 \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}}{}
8016 Remove all occurences of item from input\_list
8017 \begin{quote}\begin{description}
8018 \item[{Parameters}] \leavevmode
8019 \sphinxstyleliteralstrong{\sphinxupquote{List}} (\sphinxstyleliteralemphasis{\sphinxupquote{input\_list}}) \textendash{} The list to modify
8021 \item[{Returns}] \leavevmode
8022 The without any item
8024 \item[{Return type}] \leavevmode
8027 \end{description}\end{quote}
8031 \index{replace\_in\_file() (in module src)}
8033 \begin{fulllineitems}
8034 \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}}{}
8035 Replace \textless{}strin\textgreater{} by \textless{}strout\textgreater{} in file \textless{}filein\textgreater{}
8041 \chapter{Release Notes}
8042 \label{\detokenize{index:release-notes}}
8044 \section{Release notes}
8045 \label{\detokenize{release_notes/release_notes_5.0.0:release-notes}}\label{\detokenize{release_notes/release_notes_5.0.0::doc}}
8049 \renewcommand{\indexname}{Python Module Index}
8050 \begin{sphinxtheindex}
8051 \def\bigletter#1{{\Large\sffamily#1}\nopagebreak\vspace{1mm}}
8053 \item {\sphinxstyleindexentry{src}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src}}
8054 \item {\sphinxstyleindexentry{src.architecture}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.architecture}}
8055 \item {\sphinxstyleindexentry{src.colorama}}\sphinxstyleindexpageref{commands/apidoc/src.colorama:\detokenize{module-src.colorama}}
8056 \item {\sphinxstyleindexentry{src.colorama.ansi}}\sphinxstyleindexpageref{commands/apidoc/src.colorama:\detokenize{module-src.colorama.ansi}}
8057 \item {\sphinxstyleindexentry{src.colorama.ansitowin32}}\sphinxstyleindexpageref{commands/apidoc/src.colorama:\detokenize{module-src.colorama.ansitowin32}}
8058 \item {\sphinxstyleindexentry{src.colorama.initialise}}\sphinxstyleindexpageref{commands/apidoc/src.colorama:\detokenize{module-src.colorama.initialise}}
8059 \item {\sphinxstyleindexentry{src.colorama.win32}}\sphinxstyleindexpageref{commands/apidoc/src.colorama:\detokenize{module-src.colorama.win32}}
8060 \item {\sphinxstyleindexentry{src.colorama.winterm}}\sphinxstyleindexpageref{commands/apidoc/src.colorama:\detokenize{module-src.colorama.winterm}}
8061 \item {\sphinxstyleindexentry{src.compilation}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.compilation}}
8062 \item {\sphinxstyleindexentry{src.debug}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.debug}}
8063 \item {\sphinxstyleindexentry{src.ElementTree}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.ElementTree}}
8064 \item {\sphinxstyleindexentry{src.environment}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.environment}}
8065 \item {\sphinxstyleindexentry{src.fileEnviron}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.fileEnviron}}
8066 \item {\sphinxstyleindexentry{src.fork}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.fork}}
8067 \item {\sphinxstyleindexentry{src.logger}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.logger}}
8068 \item {\sphinxstyleindexentry{src.options}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.options}}
8069 \item {\sphinxstyleindexentry{src.printcolors}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.printcolors}}
8070 \item {\sphinxstyleindexentry{src.product}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.product}}
8071 \item {\sphinxstyleindexentry{src.pyconf}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.pyconf}}
8072 \item {\sphinxstyleindexentry{src.system}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.system}}
8073 \item {\sphinxstyleindexentry{src.template}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.template}}
8074 \item {\sphinxstyleindexentry{src.test\_module}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.test_module}}
8075 \item {\sphinxstyleindexentry{src.xmlManager}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.xmlManager}}
8076 \end{sphinxtheindex}
8078 \renewcommand{\indexname}{Index}