From f745ba2bc90b700fc1b5c97f508bebd92e16e9c7 Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 16 Nov 2009 13:34:13 +0000 Subject: [PATCH] Fix salome_test.py (check SALOME version properly to avoid failure on series 4x) --- src/KERNEL_PY/salome_test.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/KERNEL_PY/salome_test.py b/src/KERNEL_PY/salome_test.py index c0818f45f..697feb2cf 100755 --- a/src/KERNEL_PY/salome_test.py +++ b/src/KERNEL_PY/salome_test.py @@ -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: -- 2.39.2