Back to index

salome-paravis  6.5.0
Functions
paravis_setenv Namespace Reference

Functions

def set_env

Function Documentation

def paravis_setenv.set_env (   args)
Initialize environment of PARAVIS module

Definition at line 26 of file paravis_setenv.py.

00026 
00027 def set_env( args ):
00028     """Initialize environment of PARAVIS module"""
00029     from salome_utils import verbose
00030     # set PV_PLUGIN_PATH to PARAVIS plug-ins
00031     paravis_plugin_dir = os.path.join( os.getenv( "PARAVIS_ROOT_DIR" ), "lib", "paraview" )
00032     plugin_path = re.split( ":|;", os.getenv( 'PV_PLUGIN_PATH', paravis_plugin_dir ) )
00033     if paravis_plugin_dir not in plugin_path: plugin_path[0:0] = [paravis_plugin_dir]
00034     os.environ['PV_PLUGIN_PATH'] = ";".join(plugin_path)
00035     pass
00036 
00037