]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
bos #18341: HOME environment variable V9_5_0b1
authorjfa <jfa@opencascade.com>
Wed, 8 Apr 2020 08:42:16 +0000 (11:42 +0300)
committervsr <vsr@opencascade.com>
Wed, 13 May 2020 14:09:57 +0000 (17:09 +0300)
src/GEOM_SWIG/PAL_MESH_028_geometry.py

index a67b383dde1df0ab007dbd6727c1cb3bf23350ff..e1ff19917f7e6b5c8806d7640b394fd467b1d325 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):