Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'release/scripts/modules/rna_xml.py')
-rw-r--r--release/scripts/modules/rna_xml.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/release/scripts/modules/rna_xml.py b/release/scripts/modules/rna_xml.py
index 5a76c7878b8..d576aeec860 100644
--- a/release/scripts/modules/rna_xml.py
+++ b/release/scripts/modules/rna_xml.py
@@ -345,14 +345,10 @@ def xml2rna(
def _get_context_val(context, path):
- path_full = "context." + path
try:
- value = eval(path_full)
- except:
- import traceback
- traceback.print_exc()
- print("Error: %r could not be found" % path_full)
-
+ value = context.path_resolve(path)
+ except Exception as ex:
+ print("Error: %r, path %r not found" % (ex, path))
value = Ellipsis
return value