allow addons/modules path so extension authors can develop their own shared modules.

This commit is contained in:
2010-12-11 11:52:28 +00:00
parent 552cecc89e
commit 3256d0fc6a
2 changed files with 7 additions and 1 deletions

View File

@@ -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):