Explorar o código

celeryd: -I|--include argument now automatically adds cwd to path when importing the modules

Ask Solem %!s(int64=14) %!d(string=hai) anos
pai
achega
b8405d9f11
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/apps/worker.py

+ 1 - 1
celery/apps/worker.py

@@ -156,7 +156,7 @@ class Worker(object):
         self.loader = self.app.loader
         self.settings = self.app.conf
         for module in self.include:
-            self.loader.import_module(module)
+            self.loader.import_from_cwd(module)
 
     def redirect_stdouts_to_logger(self):
         handled = self.app.log.setup_logging_subsystem(loglevel=self.loglevel,