Salome HOME
Redesign SALOME documentation
[modules/gui.git] / doc / salome / gui / input / working_with_python_scripts.rst
1 .. _python_interpreter_page: 
2
3 ******************
4 Python Interpreter
5 ******************
6
7 **SALOME** Platform can be launched in the batch mode, without Graphical
8 User Interface, and operated with the use of Python scripts, which can
9 fulfill most of the necessary tasks, however, the process of scripting
10 is quite time consuming and rather error-prone.
11
12 This problem has been resolved by the possibility to automatically
13 generate a set of Python scripts from data created with SALOME GUI,
14 which greatly increases the productivity of using SALOME platform in
15 the batch mode. This mechanism can convert a SALOME Study in one or
16 several Python scripts, which can be stored and imported later to
17 re-create the content of the original study. The first script is a
18 SALOME document, which re-creates the SALOME Study, adds the
19 stored Salome components to the SALOME and automatically calls
20 Python scripts of the second type containing component specific Python
21 function calls. This architecture gives great flexibility in manual
22 modification of the generated scripts because you can modify only one
23 of the component specific Python scripts without touching others, thus
24 avoiding expert knowledge of Python API of unused components.
25
26 To Dump a  SALOME Study in one or several scripts, in the main menu
27 select **File --> Dump study**.
28 Reversibly, it is possible to load a saved Python Script selecting in
29 the main menu **File -> Load Script**.
30
31