]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Return the "Platine" debug info for unit tests
authormpv <mpv@opencascade.com>
Mon, 23 May 2016 06:59:42 +0000 (09:59 +0300)
committermpv <mpv@opencascade.com>
Mon, 23 May 2016 06:59:42 +0000 (09:59 +0300)
src/PythonAPI/examples/Platine.py

index bb22d28821444f91420f15882a085424f3794123..9ff45cca55e2da4195d46617e473669266200a8c 100644 (file)
@@ -207,12 +207,12 @@ model.do()
 
 # START DEBUG PURPOSES
 # prepare a study without last operation to trap floating problem with degenerated line
-#aPathToStore = os.path.join(os.getcwd(), "Data")
-#print aPathToStore
-#if not os.path.exists(aPathToStore):
-#    os.mkdir(aPathToStore)
-#results = ModelAPI.StringList()
-#ModelAPI.ModelAPI_Session.get().save(aPathToStore, results)
+aPathToStore = os.path.join(os.getcwd(), "Data")
+print aPathToStore
+if not os.path.exists(aPathToStore):
+    os.mkdir(aPathToStore)
+results = ModelAPI.StringList()
+ModelAPI.ModelAPI_Session.get().save(aPathToStore, results)
 # END DEBUG PURPOSES
 b4 = body_4()