From: jfa Date: Wed, 8 Apr 2020 08:42:16 +0000 (+0300) Subject: bos #18341: HOME environment variable X-Git-Tag: V9_5_0b1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fa76fc04575796ff77b4db53544130055ff6ce52;p=modules%2Fgeom.git bos #18341: HOME environment variable --- diff --git a/src/GEOM_SWIG/PAL_MESH_028_geometry.py b/src/GEOM_SWIG/PAL_MESH_028_geometry.py index a67b383dd..e1ff19917 100644 --- a/src/GEOM_SWIG/PAL_MESH_028_geometry.py +++ b/src/GEOM_SWIG/PAL_MESH_028_geometry.py @@ -75,7 +75,7 @@ Prism_1 = geompy.MakePrismVecH(Faces[4], Edges[1], 100) geompy.addToStudy(Prism_1, "Prism_1") #Save Study (9.1) -theHomePath = os.getenv("HOME") +theHomePath = os.path.expanduser("~") theFilenameToSave = theHomePath + "/Pyramid.hdf" if os.access(theFilenameToSave, os.F_OK): if os.access(theFilenameToSave, os.W_OK):