Browse Source

Task modules are now imported from the current directory

Ask Solem 14 years ago
parent
commit
43f49804a3
1 changed files with 7 additions and 7 deletions
  1. 7 7
      celery/loaders/base.py

+ 7 - 7
celery/loaders/base.py

@@ -108,13 +108,6 @@ class BaseLoader(object):
 
         return dict(map(getarg, args))
 
-    @property
-    def conf(self):
-        """Loader configuration."""
-        if not self._conf_cache:
-            self._conf_cache = self.read_configuration()
-        return self._conf_cache
-
     def import_from_cwd(self, module, imp=None):
         """Import module, but make sure it finds modules
         located in the current directory.
@@ -135,3 +128,10 @@ class BaseLoader(object):
                 sys.path.remove(cwd)
             except ValueError:
                 pass
+
+    @property
+    def conf(self):
+        """Loader configuration."""
+        if not self._conf_cache:
+            self._conf_cache = self.read_configuration()
+        return self._conf_cache