def end_path(self):
pass
+ def getProduct(self, prod):
+ for product in self.products:
+ if product.name == prod:
+ return product
+ return None
+
#================================================================
# get the path using file name
#================================================================
res = os.system(cmd)
if res : break;
+ 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" )
+
if len(root_path) and os.path.exists(root_path):
os.system("rm -r -f "+ root_path)