mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-02 05:34:29 +05:00
22 lines
488 B
Python
22 lines
488 B
Python
![]() |
#!/usr/bin/env python
|
||
|
# -*- coding: utf-8 -*-
|
||
|
|
||
|
import sys
|
||
|
import os
|
||
|
import subprocess
|
||
|
|
||
|
|
||
|
def Chercheversion(salomePath):
|
||
|
home=os.environ['HOME']
|
||
|
commande=os.path.abspath(os.path.join(home,salomePath,'runAppli'))
|
||
|
argus="--version"
|
||
|
p = subprocess.Popen([commande,argus], stdout=subprocess.PIPE)
|
||
|
(output, err) = p.communicate()
|
||
|
version=' '.join(output.split())
|
||
|
return version
|
||
|
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
print Chercheversion("/local00/home/A96028/Appli")
|
||
|
|