Salome HOME
bos #18341: HOME environment variable
[modules/smesh.git] / src / Tools / Verima / Base / versions.py
index 111a2ba0f316e9ff9ec8747a169798018c93f198..7936dc3eada6c84dac8efcb89bc5108979b4c919 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python3
-# Copyright (C) 2013-2019  CEA/DEN, EDF R&D
+# 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
@@ -24,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)