diff options
Diffstat (limited to 'release/scripts/modules/bpy/__init__.py')
-rw-r--r-- | release/scripts/modules/bpy/__init__.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/release/scripts/modules/bpy/__init__.py b/release/scripts/modules/bpy/__init__.py index 5b7d5a76336..5c636d3a0df 100644 --- a/release/scripts/modules/bpy/__init__.py +++ b/release/scripts/modules/bpy/__init__.py @@ -26,9 +26,8 @@ data = _bpy.data context = _bpy.context # python modules -from bpy import utils, path - -from bpy import ops as _ops_module +from . import utils, path +from . import ops as _ops_module # fake operator module ops = _ops_module.ops_fake_module @@ -50,6 +49,9 @@ def _main(): 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"))) # if "-d" in sys.argv: # Enable this to measure startup speed if 0: |