Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
472ffc5
)
Implementation notebook in the SMESH module.
author
rnv
<rnv@opencascade.com>
Sat, 29 Nov 2008 14:31:57 +0000
(14:31 +0000)
committer
rnv
<rnv@opencascade.com>
Sat, 29 Nov 2008 14:31:57 +0000
(14:31 +0000)
src/SMESH_SWIG/smeshDC.py
patch
|
blob
|
history
diff --git
a/src/SMESH_SWIG/smeshDC.py
b/src/SMESH_SWIG/smeshDC.py
index c1c1ca3091d5409aa7d3c16dc14ab7b6a83280bf..4b1f82b92caedcf05f4d9a8ddabc3a01c16b5313 100644
(file)
--- a/
src/SMESH_SWIG/smeshDC.py
+++ b/
src/SMESH_SWIG/smeshDC.py
@@
-4229,9
+4229,12
@@
def ParseParameters(last, nbParams,nbParam, value):
else:
strResult = strResult + ""
else:
- if isinstance(value, str) and notebook.isVariable(value):
- result = notebook.get(value)
- strResult=strResult+value
+ if isinstance(value, str):
+ if notebook.isVariable(value):
+ result = notebook.get(value)
+ strResult=strResult+value
+ else:
+ raise RuntimeError, "Variable with name '" + value + "' doesn't exist!!!"
else:
strResult=strResult+str(value)
result = value