X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FTools%2FVerima%2FBase%2Fversions.py;h=68c7489927f2759ad0ff5a71a5125a8d1c2c2961;hb=bd7477efc255f965c479d88d1be1ee3dbf4aa760;hp=55cea45a17caa78853edd9c4ce075c24a2e4a07e;hpb=c5866a318c33c102961070f0a5076cbb76401d1f;p=modules%2Fsmesh.git diff --git a/src/Tools/Verima/Base/versions.py b/src/Tools/Verima/Base/versions.py index 55cea45a1..68c748992 100755 --- a/src/Tools/Verima/Base/versions.py +++ b/src/Tools/Verima/Base/versions.py @@ -1,5 +1,4 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- +#!/usr/bin/env python3 import sys import os @@ -8,11 +7,11 @@ import subprocess def Chercheversion(salomePath): home=os.environ['HOME'] - commande=os.path.abspath(os.path.join(home,salomePath,'runAppli')) + commande=os.path.abspath(os.path.join(home,salomePath,'salome')) argus="--version" p = subprocess.Popen([commande,argus], stdout=subprocess.PIPE) (output, err) = p.communicate() - version=' '.join(output.split()) + version=' '.join(output.decode().split()) return version