]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Compatibility with Python 3.x. CTH_2_5_1
authorouv <oleg.uvarov@opencascade.com>
Thu, 13 May 2021 16:59:10 +0000 (19:59 +0300)
committerouv <oleg.uvarov@opencascade.com>
Thu, 13 May 2021 16:59:10 +0000 (19:59 +0300)
bin/runLightSalome.csh
bin/runLightSalome.sh

index bbca5b19ec029789d9430d84191a0d94e04f551a..59aca283372712bcadce5554fd66337bae39d31b 100755 (executable)
@@ -76,7 +76,7 @@ end
 # set additional environment
 ###
 
-set python_version=`python -c "import sys; print sys.version[:3]"`
+set python_version=`python -c "import sys; print(sys.version[:3])"`
 
 set MY_PATH=""
 set MY_LD_LIBRARY_PATH=""
index 658f8f44739892144d67e6852fb345bbc15aa992..51a1cf29c654c44588bf346bc296753c40ddca9a 100755 (executable)
@@ -68,7 +68,7 @@ done
 # set additional environment
 ###
 
-python_version=`python -c "import sys; print sys.version[:3]" 2>/dev/null`
+python_version=`python -c "import sys; print(sys.version[:3])" 2>/dev/null`
 
 MY_PATH=""
 MY_LD_LIBRARY_PATH=""