Salome HOME
Modify test: raise exception instead of sys.exit()
authorvsr <vsr@opencascade.com>
Fri, 20 Aug 2021 17:39:55 +0000 (20:39 +0300)
committervsr <vsr@opencascade.com>
Fri, 20 Aug 2021 17:39:55 +0000 (20:39 +0300)
doc/salome/examples/find_salome_actor_delegate_to_vtk.py

index e008b7604f1cd28e48201c9dd30b08a3cd569ed2..df8dd13f4c1ecae4ef8e4b3d0f1e60d83ac70fac 100644 (file)
@@ -5,5 +5,5 @@
 import os
 import sys
 
-result = 'SALOME_ACTOR_DELEGATE_TO_VTK' in os.environ
-sys.exit(int(not result))
+if 'SALOME_ACTOR_DELEGATE_TO_VTK' not in os.environ:
+    raise RuntimeError('SALOME_ACTOR_DELEGATE_TO_VTK is not set!')