Back to index

salome-geom  6.5.0
Functions
geom_setenv Namespace Reference

Functions

def set_env

Function Documentation

def geom_setenv.set_env (   args)
Add to the PATH-variables modules specific paths

Definition at line 28 of file geom_setenv.py.

00028 
00029 def set_env( args ):
00030     """Add to the PATH-variables modules specific paths"""
00031     
00032     tmp_dir = getTmpDir()
00033     env_dir = generateFileName( tmp_dir, prefix="env", with_port=True )
00034     res_dir = os.path.join( os.getenv( "GEOM_ROOT_DIR" ), "share", salome_subdir, "resources", "geom" )
00035 
00036     csf_list = ["Plugin", "GEOMDS_Resources", "ShHealing"]
00037 
00038     for csf_file in csf_list:
00039        uniteFiles( os.path.join( res_dir, csf_file ), os.path.join( env_dir, csf_file ) )
00040        pass
00041 
00042     for csf_string in csf_list:
00043         csf_var = "CSF_" + csf_string + "Defaults"
00044         if not os.getenv( csf_var ):
00045             os.environ[ csf_var ] = env_dir
00046             pass
00047         pass
00048