]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix for bos #18341 jfa/18341_HOME
authorjfa <jfa@opencascade.com>
Wed, 8 Apr 2020 08:42:16 +0000 (11:42 +0300)
committerjfa <jfa@opencascade.com>
Wed, 8 Apr 2020 08:42:16 +0000 (11:42 +0300)
src/GEOM_SWIG/PAL_MESH_028_geometry.py

index 67c7160dbae1507101a443605d7185fbdde5b3f5..92f623cf6d07727c785357beb70622a3a4c4b84c 100644 (file)
@@ -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):