Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote branch 'origin/V8_5_asterstudy'
[modules/smesh.git]
/
src
/
Tools
/
Verima
/
Base
/
versions.py
diff --git
a/src/Tools/Verima/Base/versions.py
b/src/Tools/Verima/Base/versions.py
index 55cea45a17caa78853edd9c4ce075c24a2e4a07e..68c7489927f2759ad0ff5a71a5125a8d1c2c2961 100755
(executable)
--- 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
import sys
import os
@@
-8,11
+7,11
@@
import subprocess
def Chercheversion(salomePath):
home=os.environ['HOME']
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()
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
return version