From: Anil-Kumar Vengalil Date: Fri, 27 Nov 2009 13:13:57 +0000 (+0000) Subject: bug fix in importing sfa method modules X-Git-Tag: sfa-0.9-7~286 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=1f96bfc77a793cc88422c967e12102211523e459 bug fix in importing sfa method modules --- 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: