X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FTools%2FVerima%2FBase%2Fversions.py;h=7936dc3eada6c84dac8efcb89bc5108979b4c919;hp=68c7489927f2759ad0ff5a71a5125a8d1c2c2961;hb=ab46000ce37681e966a28f5e9276420d01df78bd;hpb=7a3ecab720cc517ace17c5c4677fd3c20c0051ee diff --git a/src/Tools/Verima/Base/versions.py b/src/Tools/Verima/Base/versions.py index 68c748992..7936dc3ea 100755 --- a/src/Tools/Verima/Base/versions.py +++ b/src/Tools/Verima/Base/versions.py @@ -1,4 +1,22 @@ #!/usr/bin/env python3 +# Copyright (C) 2013-2020 EDF R&D +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# import sys import os @@ -6,7 +24,7 @@ import subprocess def Chercheversion(salomePath): - home=os.environ['HOME'] + home=os.path.expanduser("~") commande=os.path.abspath(os.path.join(home,salomePath,'salome')) argus="--version" p = subprocess.Popen([commande,argus], stdout=subprocess.PIPE)