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>2010-12-11 14:52:28 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-12-11 14:52:28 +0300
commit3256d0fc6a2522532bdfd6ada2dd3dd1698094c8 (patch)
tree9576fabe277c89da4b5f26dbbbe84c662e90126d /release/scripts/modules/bpy/__init__.py
parent552cecc89e722e34f9211d89bfc35a9e1d5f39d9 (diff)
allow addons/modules path so extension authors can develop their own shared modules.
Diffstat (limited to 'release/scripts/modules/bpy/__init__.py')
-rw-r--r--release/scripts/modules/bpy/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/release/scripts/modules/bpy/__init__.py b/release/scripts/modules/bpy/__init__.py
index 3d8bf0724fb..99faeeaf169 100644
--- a/release/scripts/modules/bpy/__init__.py
+++ b/release/scripts/modules/bpy/__init__.py
@@ -48,6 +48,10 @@ def _main():
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")))
# if "-d" in sys.argv: # Enable this to measure startup speed
if 0: