From c2c6683a3a6b3f709488c80e8505a17616d03bbe Mon Sep 17 00:00:00 2001 From: Thomas S Hatch Date: Fri, 22 Apr 2011 23:25:08 -0600 Subject: [PATCH] modify loader call method to use self.module_dirs --- salt/loader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/loader.py b/salt/loader.py index 3616b991b6..65e1827f0f 100644 --- a/salt/loader.py +++ b/salt/loader.py @@ -82,11 +82,11 @@ class Loader(object): ''' name = fun[:fun.rindex('.')] try: - fn_, path, desc = imp.find_module(name, module_dirs) + fn_, path, desc = imp.find_module(name, self.module_dirs) mod = imp.load_module(name, fn_, path, desc) except ImportError: # The module was not found, try to find a cython module - for mod_dir in module_dirs: + for mod_dir in self.module_dirs: for fn_ in os.listdir(mod_dir): if name == fn_[:fn_.rindex('.')]: # Found it, load the mod and break the loop