From 1f96bfc77a793cc88422c967e12102211523e459 Mon Sep 17 00:00:00 2001 From: Anil-Kumar Vengalil Date: Fri, 27 Nov 2009 13:13:57 +0000 Subject: [PATCH] bug fix in importing sfa method modules --- sfa/util/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfa/util/api.py b/sfa/util/api.py index f082654f..1b86aae7 100644 --- a/sfa/util/api.py +++ b/sfa/util/api.py @@ -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: -- 2.43.0