Salome HOME
Add getPOA() needed for the previous commit
[modules/shaper_study.git] / src / PY / SHAPERSTUDY_utils.py
old mode 100644 (file)
new mode 100755 (executable)
index 8feefe5..20aa2db
@@ -86,6 +86,17 @@ def getORB():
         pass
     return __orb__
 
+###
+# Get POA
+###
+__poa__ = None
+def getPOA():
+    global __poa__
+    if __poa__ is None:
+        __poa__ = getORB().resolve_initial_references("RootPOA")
+        pass
+    return __poa__
+
 ###
 # Get naming service instance
 ###