#!/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
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)