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>2013-02-20 18:22:36 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-02-20 18:22:36 +0400
commita8ebc1b2de13c0f473b8cb22036f54dee8e1f393 (patch)
tree9dc917a7a1a4cc846c0868e710856bd257b91886 /doc/python_api/sphinx_doc_gen.py
parentf844b79577961544d585750f15f6bc7bc88ab031 (diff)
edits to document uploading script so the latest release docs can always be found at:
http://www.blender.org/documentation/blender_python_api Easier for linking wiki docs.
Diffstat (limited to 'doc/python_api/sphinx_doc_gen.py')
-rw-r--r--doc/python_api/sphinx_doc_gen.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py
index 3170a2ef469..09e844adae3 100644
--- a/doc/python_api/sphinx_doc_gen.py
+++ b/doc/python_api/sphinx_doc_gen.py
@@ -1483,7 +1483,9 @@ def write_sphinx_conf_py(basepath):
def execfile(filepath):
global_namespace = {"__file__": filepath, "__name__": "__main__"}
- exec(compile(open(filepath).read(), filepath, 'exec'), global_namespace)
+ file_handle = open(filepath)
+ exec(compile(file_handle.read(), filepath, 'exec'), global_namespace)
+ file_handle.close()
def write_rst_contents(basepath):