# --- names of tags in XML configuration file
appli_tag = "application"
prereq_tag = "prerequisites"
+context_tag = "context"
system_conf_tag = "system_conf"
modules_tag = "modules"
module_tag = "module"
if self.space == [appli_tag, prereq_tag] and path_att in attrs.getNames():
self.config["prereq_path"] = attrs.getValue( path_att )
pass
+ # --- if we are analyzing "context" element then store its "path" attribute
+ if self.space == [appli_tag, context_tag] and path_att in attrs.getNames():
+ self.config["context_path"] = attrs.getValue( path_att )
+ pass
# --- if we are analyzing "system_conf" element then store its "path" attribute
if self.space == [appli_tag, system_conf_tag] and path_att in attrs.getNames():
self.config["system_conf_path"] = attrs.getValue( path_att )
else:
print "WARNING: prerequisite file does not exist"
pass
- # :NOTE: For the new launch procedure, we do not use a "physical" .cfg
- # file for prerequisites; the launch procedure automatically reads and
- # converts the envProducts.sh file.
+
+ if os.path.isfile(_config["context_path"]):
+ command='cp -p ' + _config["context_path"] + ' ' + os.path.join(home_dir,'env.d','envProducts.cfg')
+ os.system(command)
+ pass
+ else:
+ print "WARNING: context file does not exist"
+ pass
if _config.has_key("system_conf_path") and os.path.isfile(_config["system_conf_path"]):
command='cp -p ' + _config["system_conf_path"] + ' ' + os.path.join(home_dir,'env.d','envConfSystem.sh')
os.system(command)
pass
+
# Create environment file: configSalome.sh
f =open(os.path.join(home_dir,'env.d','configSalome.sh'),'w')
for module in _config["modules"]: