Salome HOME
Merge remote branch 'origin/V8_5_asterstudy'
[modules/smesh.git] / src / Tools / Verima / Base / versions.py
1 #!/usr/bin/env python3
2
3 import sys
4 import os
5 import  subprocess
6
7
8 def Chercheversion(salomePath):
9     home=os.environ['HOME']
10     commande=os.path.abspath(os.path.join(home,salomePath,'salome'))
11     argus="--version"
12     p = subprocess.Popen([commande,argus], stdout=subprocess.PIPE)
13     (output, err) = p.communicate()
14     version=' '.join(output.decode().split())
15     return version
16
17
18 if __name__ == "__main__":
19       print(Chercheversion("/local00/home/A96028/Appli"))
20