Personal tools
You are here: Home Forum How to use Salome? Running Salome script without graphics

Running Salome script without graphics

Up to How to use Salome?

Running Salome script without graphics

Posted by Cyprien Descheemaeker at November 07. 2012

I exported a script from Salome (dump), and I want to run it in python (I'm doing some geometric operation and I don't need any graphics). So I removed all the graphic command, but when I try to launch my python file, python cannot found the salome libraries.

I tried to export the salome path ('install_path'/appli_V6_5_0p1/bin/salome/) in PYTHONPATH and LD_LIBRARY_PATH but it still doesn't work.

I also would like to know if it's possible to use only the geompy library without salome, and if it's possible, how can I install only the geompy library? ( I need to launch some geompy script on a UAV with only 8Go of memory, so the less thing I install, the better)

Re: Running Salome script without graphics

Posted by Saint Michael at November 07. 2012

You should call runSalome or runAppli which set a lot of environment to be able to start SALOME. To run a SALOME script in a batch mode (i.e. without GUI) the following command should be performed $ runSalome -t /myScript

It's possible to build GEOM module in "without GUI" mode, then only KERNEL and a part of GEOM will be installed. To achieve this, GEOM module must be configured with option --with-gui=no

St.Michael

Powered by Ploneboard
Document Actions