From cc6a585bbc5bf03eaa7ff94d36b45e0581e36a88 Mon Sep 17 00:00:00 2001 From: Camille GOUTTEBROZE Date: Fri, 29 Aug 2014 16:33:37 +0200 Subject: [PATCH] More clever way to get home directory when creating temporary directory --- bin/salome_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() ) -- 2.39.2