]> SALOME platform Git repositories - tools/yacsgen.git/commitdiff
Salome HOME
CCAR: fix resources directory name in SalomeApp.xml file (always lower case)
authorcaremoli <caremoli>
Fri, 28 Jan 2011 12:48:29 +0000 (12:48 +0000)
committercaremoli <caremoli>
Fri, 28 Jan 2011 12:48:29 +0000 (12:48 +0000)
module_generator/gener.py
module_generator/gui_tmpl.py

index 4fc94e577ec8228e29108579c4ca09dcf99fe98c..6a85bd704759d961212b70d87d8db5660399e0b2 100644 (file)
@@ -601,7 +601,7 @@ echo "  Qt ..................... : $qt_ok"
 
     if not os.path.exists(os.path.join(namedir, "src", self.module.name+"GUI", "SalomeApp.xml")):
       #create a minimal SalomeApp.xml
-      salomeapp=pysalomeapp.substitute(module=self.module.name)
+      salomeapp=pysalomeapp.substitute(module=self.module.name,lmodule=self.module.name.lower())
       d["SalomeApp.xml"]=salomeapp
 
     return d
@@ -630,7 +630,7 @@ echo "  Qt ..................... : $qt_ok"
 
     if not os.path.exists(os.path.join(namedir, "src", self.module.name+"GUI", "SalomeApp.xml")):
       #create a minimal SalomeApp.xml
-      salomeapp=cppsalomeapp.substitute(module=self.module.name)
+      salomeapp=cppsalomeapp.substitute(module=self.module.name,lmodule=self.module.name.lower())
       d["SalomeApp.xml"]=salomeapp
 
     return d
index 2cc897bf5b8204565c342288a5d8bf264d7c15bd..4f2b7a48007bdf80027498baf36d4594198ebafe 100644 (file)
@@ -22,7 +22,7 @@ pysalomeapp="""
     <parameter name="library" value="SalomePyQtGUI"/>
   </section>
   <section name="resources">
-    <parameter name="${module}" value="$${${module}_ROOT_DIR}/share/salome/resources/${module}"/>
+    <parameter name="${module}" value="$${${module}_ROOT_DIR}/share/salome/resources/${lmodule}"/>
   </section>
 </document>
 """
@@ -58,7 +58,7 @@ cppsalomeapp="""
     <parameter name="icon" value="${module}.png"/>
   </section>
   <section name="resources">
-    <parameter name="${module}" value="$${${module}_ROOT_DIR}/share/salome/resources/${module}"/>
+    <parameter name="${module}" value="$${${module}_ROOT_DIR}/share/salome/resources/${lmodule}"/>
   </section>
 </document>
 """