Browse Source

celery shell command should add cwd to path

Ask Solem 12 năm trước cách đây
mục cha
commit
106e1bc29c
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      celery/bin/celery.py

+ 1 - 0
celery/bin/celery.py

@@ -747,6 +747,7 @@ class shell(Command):  # pragma: no cover
     def run(self, force_ipython=False, force_bpython=False,
             force_python=False, without_tasks=False, eventlet=False,
             gevent=False, **kwargs):
+        sys.path.insert(0, os.getcwd())
         if eventlet:
             import_module('celery.concurrency.eventlet')
         if gevent: