Преглед изворни кода

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

Ask Solem пре 14 година
родитељ
комит
b8405d9f11
1 измењених фајлова са 1 додато и 1 уклоњено
  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,