diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-12-11 14:52:28 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-12-11 14:52:28 +0300 |
commit | 3256d0fc6a2522532bdfd6ada2dd3dd1698094c8 (patch) | |
tree | 9576fabe277c89da4b5f26dbbbe84c662e90126d /release/scripts/modules/bpy/path.py | |
parent | 552cecc89e722e34f9211d89bfc35a9e1d5f39d9 (diff) |
allow addons/modules path so extension authors can develop their own shared modules.
Diffstat (limited to 'release/scripts/modules/bpy/path.py')
-rw-r--r-- | release/scripts/modules/bpy/path.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/release/scripts/modules/bpy/path.py b/release/scripts/modules/bpy/path.py index 1470c1fda01..9c9d386c7b0 100644 --- a/release/scripts/modules/bpy/path.py +++ b/release/scripts/modules/bpy/path.py @@ -203,7 +203,9 @@ def module_names(path, recursive=False): modules = [] for filename in sorted(_os.listdir(path)): - if filename.endswith(".py") and filename != "__init__.py": + if filename == "modules": + pass # XXX, hard coded exception. + elif filename.endswith(".py") and filename != "__init__.py": fullpath = join(path, filename) modules.append((filename[0:-3], fullpath)) elif ("." not in filename): |