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:
authorCampbell Barton <ideasman42@gmail.com>2012-11-29 07:55:07 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-11-29 07:55:07 +0400
commitede703ab855e7a4608631780949334984e05c2b4 (patch)
tree2d3661d599758702079c84ef34d7df204d18b91a /release
parentc86045d7a29c2ffe3f102955560fda214d9f7f2d (diff)
some minor edits
- script stub printed resource warning with py3.3 (not closing a file). - bmesh customdata layer access had bad docstring. - float/double conversion warnings in sequencer code (use doubles since result is double) - remove unused var
Diffstat (limited to 'release')
-rw-r--r--release/scripts/templates/script_stub.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/release/scripts/templates/script_stub.py b/release/scripts/templates/script_stub.py
index 143c7c5104a..80eca9663df 100644
--- a/release/scripts/templates/script_stub.py
+++ b/release/scripts/templates/script_stub.py
@@ -9,4 +9,6 @@ filename = "my_script.py"
filepath = os.path.join(os.path.dirname(bpy.data.filepath), filename)
global_namespace = {"__file__": filepath, "__name__": "__main__"}
-exec(compile(open(filepath).read(), filepath, 'exec'), global_namespace)
+file_handle = open(filepath, 'rb')
+exec(compile(file_handle.read(), filepath, 'exec'), global_namespace)
+file_handle.close()