2 # -*- coding: iso-8859-1 -*-
3 # Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
5 # This library is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Lesser General Public
7 # License as published by the Free Software Foundation; either
8 # version 2.1 of the License.
10 # This library is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Lesser General Public License for more details.
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with this library; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 from salome_utils import getTmpDir, generateFileName, uniteFiles
24 from setenv import salome_subdir
26 # -----------------------------------------------------------------------------
29 """Add to the PATH-variables modules specific paths"""
32 env_dir = generateFileName( tmp_dir, prefix="env", with_port=True )
33 res_dir = os.path.join( os.getenv( "GEOM_ROOT_DIR" ), "share", salome_subdir, "resources", "geom" )
35 csf_list = ["Plugin", "GEOMDS_Resources", "ShHealing"]
37 for csf_file in csf_list:
38 uniteFiles( os.path.join( res_dir, csf_file ), os.path.join( env_dir, csf_file ) )
41 for csf_string in csf_list:
42 csf_var = "CSF_" + csf_string + "Defaults"
43 if not os.getenv( csf_var ):
44 os.environ[ csf_var ] = env_dir