From: jfa Date: Wed, 8 Apr 2020 08:42:16 +0000 (+0300) Subject: Fix for bos #18341 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fjfa%2F18341_HOME;p=modules%2Fgeom.git Fix for bos #18341 --- 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):