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 Python 3 porting.
[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 b5af3482b2d85fe1911106f35768c317a7af1987..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,14
+7,14
@@
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
if __name__ == "__main__":
return version
if __name__ == "__main__":
- print
Chercheversion("/local00/home/A96028/Appli"
)
+ print
(Chercheversion("/local00/home/A96028/Appli")
)