Modified:
/trunk/namespace.py
=======================================
--- /trunk/namespace.py Fri Jan 29 00:54:33 2010
+++ /trunk/namespace.py Fri Feb 12 16:33:52 2010
@@ -140,8 +140,8 @@
valueType = type(v)
# Modules will have been imported from elsewhere.
- if isinstance(v, types.ModuleType):
- continue
+ #if isinstance(v, types.ModuleType):
+ # continue
if valueType in (types.ClassType, types.TypeType):
# Classes with valid modules will have been imported from
elsewhere.
@@ -202,6 +202,9 @@
while len(scriptFilesToLoad) and attemptsLeft > 0:
logger.debug("ScriptDirectory.Load dependency resolution
attempts left %d", attemptsLeft)
+ if len(scriptFilesToLoad) == 1:
+ attemptsLeft = 1
+
scriptFilesLoaded = set()
for scriptFile in scriptFilesToLoad:
if self.RunScript(scriptFile):