diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-11-30 10:55:36 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-11-30 10:55:36 +0400 |
commit | ad2b41bc4bae3b0406ce6fcee69be581b0e96105 (patch) | |
tree | a7ac9d47897790a46fed0cd7bef64cb777b0c66e /release | |
parent | ef08e311343495448498cc4d6e03b4d024cf203c (diff) |
add margin to view fitting view-all/local-view (wasn't obvious with the models I was testing with).
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/templates/script_stub.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/templates/script_stub.py b/release/scripts/templates/script_stub.py index 80eca9663df..44c7b802e2c 100644 --- a/release/scripts/templates/script_stub.py +++ b/release/scripts/templates/script_stub.py @@ -9,6 +9,6 @@ filename = "my_script.py" filepath = os.path.join(os.path.dirname(bpy.data.filepath), filename) global_namespace = {"__file__": filepath, "__name__": "__main__"} -file_handle = open(filepath, 'rb') -exec(compile(file_handle.read(), filepath, 'exec'), global_namespace) -file_handle.close() +file = open(filepath, 'rb') +exec(compile(file.read(), filepath, 'exec'), global_namespace) +file.close() |