From fcc928b6871e9f119ca7e1c91e9edef009a3cb7e Mon Sep 17 00:00:00 2001 From: jfa Date: Wed, 8 Apr 2020 11:42:16 +0300 Subject: [PATCH] bos #18341: HOME environment variable --- src/GEOM_SWIG/PAL_MESH_028_geometry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.39.2