bug fix in importing sfa method modules
authorAnil-Kumar Vengalil <Anil-Kumar.Vengalil@sophia.inria.fr>
Fri, 27 Nov 2009 13:13:57 +0000 (13:13 +0000)
committerAnil-Kumar Vengalil <Anil-Kumar.Vengalil@sophia.inria.fr>
Fri, 27 Nov 2009 13:13:57 +0000 (13:13 +0000)
sfa/util/api.py

index f082654..1b86aae 100644 (file)
@@ -136,7 +136,7 @@ class BaseAPI:
         # Get new instance of method
         try:
             classname = method.split(".")[-1]
-            module = __import__(self.methods_module + "." + method, globals(), locals(), [classname])
+            module = __import__(self.methods_module.methods.__name__ + "." + method, globals(), locals(), [classname])
             callablemethod = getattr(module, classname)(self)
             return getattr(module, classname)(self)
         except ImportError, AttributeError: