]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
spns #32335: some projects still rely on Python 2. Implement a switch based on Python...
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 2 Jan 2023 13:17:40 +0000 (14:17 +0100)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 2 Jan 2023 13:17:40 +0000 (14:17 +0100)
products/compil_scripts/omniORB.sh

index 475fd5ccf510d11f57ac120d1b19f2c942f5b2b5..632712f5ec28360c27becc9d7543736735e2ba09 100755 (executable)
@@ -47,6 +47,8 @@ if version_ge $VERSION "4.1" ; then
     if [ $? -ne 0 ]; then
        echo ERROR: Failed to extract major Python version -  assuming Python version equal to 3...
        pyVersionMajor=python3
+    elif [ "${pyVersionMajor}" == "python2" ]; then
+       pyVersionMajor=python
     fi
     echo INFO: Python version major: ${pyVersionMajor}
     sed -e "s%#\!.*python[0-9]*%#\!/usr/bin/env ${pyVersionMajor}%" omniidl > _omniidl