Salome HOME
projects
/
tools
/
sat_salome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
eca7ecb
)
spns #32335: some projects still rely on Python 2. Implement a switch based on Python...
author
Nabil Ghodbane
<nabil.ghodbane@cea.fr>
Mon, 2 Jan 2023 13:17:40 +0000
(14:17 +0100)
committer
Nabil Ghodbane
<nabil.ghodbane@cea.fr>
Mon, 2 Jan 2023 13:17:40 +0000
(14:17 +0100)
products/compil_scripts/omniORB.sh
patch
|
blob
|
history
diff --git
a/products/compil_scripts/omniORB.sh
b/products/compil_scripts/omniORB.sh
index 475fd5ccf510d11f57ac120d1b19f2c942f5b2b5..632712f5ec28360c27becc9d7543736735e2ba09 100755
(executable)
--- a/
products/compil_scripts/omniORB.sh
+++ b/
products/compil_scripts/omniORB.sh
@@
-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