Salome HOME
Porting Python 3
[modules/smesh.git] / src / Tools / Verima / Base / versions.py
index 55cea45a17caa78853edd9c4ce075c24a2e4a07e..68c7489927f2759ad0ff5a71a5125a8d1c2c2961 100755 (executable)
@@ -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