Salome HOME
727d7ca34675ade2337af43f0bde3357fb758a2d
[modules/med.git] / src / MEDOP / tui / xmedpy / medop.py
1 # -*- coding: iso-8859-1 -*-
2 # Copyright (C) 2011-2013  CEA/DEN, EDF R&D
3 #
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License.
8 #
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 # Lesser General Public License for more details.
13 #
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 #
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #
20 # Author : Guillaume Boulant (EDF) 
21
22 #
23 # ===================================================================
24 # medop.py is a tools to initialize a python console outside of the
25 # GUI for field operations. A salome session must be running
26 # first. For example:
27 # $ ./runAppli -t
28 # $ ./runSession
29 # $ python -i path/to/medop.py
30 # ===================================================================
31 #
32
33 import xmed
34 # Set the globals dictionnary so that the fields tools work properly.
35 xmed.setConsoleGlobals(globals())
36 # Import the tools required for field operations
37 from xmed import load, get, put, dup, ls, la, save, view, doc, wipe