diff options
Diffstat (limited to 'release/scripts/modules/bpy/__init__.py')
-rw-r--r-- | release/scripts/modules/bpy/__init__.py | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/release/scripts/modules/bpy/__init__.py b/release/scripts/modules/bpy/__init__.py index 5c636d3a0df..1df8e9e5588 100644 --- a/release/scripts/modules/bpy/__init__.py +++ b/release/scripts/modules/bpy/__init__.py @@ -18,6 +18,10 @@ # <pep8 compliant> +""" +Give access to blender data and utility functions. +""" + # internal blender C module import _bpy from _bpy import types, props, app @@ -37,18 +41,6 @@ import sys as _sys def _main(): - ## security issue, dont allow the $CWD in the path. - ## note: this removes "" but not "." which are the same, security - ## people need to explain how this is even a fix. - # _sys.path[:] = filter(None, _sys.path) - - # because of how the console works. we need our own help() pager func. - # replace the bold function because it adds crazy chars - import pydoc - pydoc.getpager = lambda: pydoc.plainpager - pydoc.Helper.getline = lambda self, prompt: None - pydoc.TextDoc.use_bold = lambda self, text: text - # Possibly temp. addons path from os.path import join, dirname, normpath _sys.path.append(normpath(join(dirname(__file__), "..", "..", "addons", "modules"))) |