]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix salome_test.py (check SALOME version properly to avoid failure on series 4x) V5_1_3rc3
authorvsr <vsr@opencascade.com>
Mon, 16 Nov 2009 13:34:13 +0000 (13:34 +0000)
committervsr <vsr@opencascade.com>
Mon, 16 Nov 2009 13:34:13 +0000 (13:34 +0000)
src/KERNEL_PY/salome_test.py

index c0818f45ff590335c2c24e70e46826fad77d7846..697feb2cf4ac8a373dc81e51fa218faff20ed08d 100755 (executable)
@@ -261,8 +261,9 @@ print
 print "=============  Test     Supervisor      ============================="
 print
 import salome_version
-versions = salome_version.getVersions()
-if versions[0] < 5:
+version = salome_version.getVersions("GUI")[0]
+if not version: version = salome_version.getVersions("KERNEL")[0]
+if version < 5:
        # SUPERV module is avaiable
        comp = catalog.GetComponent("SUPERV")
        if comp is None: