From 31fe3679bb995ada8dd8d2e3df1b4d3b5351f46b Mon Sep 17 00:00:00 2001 From: jfa Date: Wed, 8 Apr 2020 11:42:16 +0300 Subject: [PATCH] Fix for bos #18341 --- 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 67c7160db..92f623cf6 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