- shFile = target_dir + "/env_products.sh"
- cshFile = target_dir + "/env_products.csh"
- binProduct = parser.getProduct("KERNEL-Bin")
- srcProduct = parser.getProduct("KERNEL-Src")
- if binProduct:
- if os.path.exists(shFile):
- os.system( "cp " + shFile + " " + target_dir + "/KERNEL_" + binProduct.version + "/salome.sh" )
- if os.path.exists(cshFile):
- os.system( "cp " + cshFile + " " + target_dir + "/KERNEL_" + binProduct.version + "/salome.csh" )
- if srcProduct:
- if os.path.exists(shFile):
- os.system( "cp " + shFile + " " + target_dir + "/KERNEL_SRC_" + binProduct.version + "/salome.sh" )
- if os.path.exists(cshFile):
- os.system( "cp " + cshFile + " " + target_dir + "/KERNEL_SRC_" + binProduct.version + "/salome.csh" )
+ # pickup environment
+ for product in parser.products :
+
+ if product.disable == "true": continue
+
+ if product.pickupEnv == "true":
+ cmd = scripts_dir + product.script + " " + \
+ "pickup_env " + \
+ tmp_dir + " " + \
+ source_dir + "/" + subdir[product.install] + " " + \
+ target_dir + " " + \
+ '"' + list_of_dep + '"' + " " + \
+ product.name
+
+ res = os.system(cmd)