]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix regression caused by previous integration:
authorvsr <vsr@opencascade.com>
Wed, 16 Feb 2011 17:03:31 +0000 (17:03 +0000)
committervsr <vsr@opencascade.com>
Wed, 16 Feb 2011 17:03:31 +0000 (17:03 +0000)
Issue 0021190: [CEA 452] SalomeApp.xml not found on 6 main OK with 6.2.0

bin/runSalome.py

index aecb22ef1fbfb28609463ea92d2b46b5becee0e0..a4572493752f295a71b0210ea93cd3257a299b9b 100755 (executable)
@@ -286,7 +286,9 @@ class SessionServer(Server):
             list_modules = []
             #keep only modules with GUI
             for m in modules_list:
-              if os.path.exists(os.path.join(modules_root_dir[m],"share","salome","resources",m.lower(),"SalomeApp.xml")):
+              fr1 = os.path.join(modules_root_dir[m],"share","salome","resources",m.lower(),"SalomeApp.xml")
+              fr2 = os.path.join(modules_root_dir[m],"share","salome","resources","SalomeApp.xml")
+              if os.path.exists(fr1) or os.path.exists(fr2):
                 list_modules.insert(0,m)
             self.SCMD2+=['--modules (%s)' % ":".join(list_modules)]