Salome HOME
projects
/
modules
/
shaper_study.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add getPOA() needed for the previous commit
[modules/shaper_study.git]
/
src
/
PY
/
SHAPERSTUDY_utils.py
diff --git
a/src/PY/SHAPERSTUDY_utils.py
b/src/PY/SHAPERSTUDY_utils.py
old mode 100644
(file)
new mode 100755
(executable)
index
8feefe5
..
20aa2db
--- a/
src/PY/SHAPERSTUDY_utils.py
+++ b/
src/PY/SHAPERSTUDY_utils.py
@@
-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
###