Salome HOME
bos #18341: HOME environment variable
[modules/smesh.git] / src / Tools / Verima / Base / versions.py
index 68c7489927f2759ad0ff5a71a5125a8d1c2c2961..7936dc3eada6c84dac8efcb89bc5108979b4c919 100755 (executable)
@@ -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)