diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-25 04:55:00 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-25 04:55:00 +0300 |
commit | b5100196021d12129c0d7e80be7e202c319ea120 (patch) | |
tree | 4dbd5168c42ed7412df3adfc5114a0f1c52ea2ed /release/scripts | |
parent | fcc5b5c48c127b0b4567434e8ce5c30dc91ae1e3 (diff) |
fix for incorrect prints with RNA errors (own fault, CONTAINER_RNA_ID was incorrect) & close keymap file after running.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/modules/bpy/utils.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/release/scripts/modules/bpy/utils.py b/release/scripts/modules/bpy/utils.py index 28e6ee991de..a8f5925f467 100644 --- a/release/scripts/modules/bpy/utils.py +++ b/release/scripts/modules/bpy/utils.py @@ -352,7 +352,9 @@ def keyconfig_set(filepath): keyconfigs_old = keyconfigs[:] try: - exec(compile(open(filepath).read(), filepath, 'exec'), {"__file__": filepath}) + file = open(filepath) + exec(compile(file.read(), filepath, 'exec'), {"__file__": filepath}) + file.close() except: import traceback traceback.print_exc() |