]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
More clever way to get home directory when creating temporary directory
authorCamille GOUTTEBROZE <camille.gouttebroze@cea.fr>
Fri, 29 Aug 2014 14:33:37 +0000 (16:33 +0200)
committerCamille GOUTTEBROZE <camille.gouttebroze@cea.fr>
Fri, 29 Aug 2014 14:33:37 +0000 (16:33 +0200)
bin/salome_utils.py

index a27009a45e81d300c436e11fd996af1bca51291a..b66d60d13f3eb50faee3e79952172bf0174c29ad 100644 (file)
@@ -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() )