From: Camille GOUTTEBROZE Date: Fri, 29 Aug 2014 14:33:37 +0000 (+0200) Subject: More clever way to get home directory when creating temporary directory X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cc6a585bbc5bf03eaa7ff94d36b45e0581e36a88;p=modules%2Fkernel.git More clever way to get home directory when creating temporary directory --- diff --git a/bin/salome_utils.py b/bin/salome_utils.py index a27009a45..b66d60d13 100644 --- a/bin/salome_utils.py +++ b/bin/salome_utils.py @@ -236,7 +236,7 @@ def getTmpDir(): if sys.platform == "win32": # for Windows: temporarily using home directory for tmp files; # to be replaced with TEMP environment variable later... - dir = os.getenv("HOME") + dir = getHomeDir() else: # for Linux: use /tmp/logs/{user} folder dir = os.path.join( '/tmp', 'logs', getUserName() )