diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-02-20 18:22:36 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-02-20 18:22:36 +0400 |
commit | a8ebc1b2de13c0f473b8cb22036f54dee8e1f393 (patch) | |
tree | 9dc917a7a1a4cc846c0868e710856bd257b91886 /doc/python_api/sphinx_doc_gen.py | |
parent | f844b79577961544d585750f15f6bc7bc88ab031 (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.py | 4 |
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): |