瀏覽代碼

celery shell command should add cwd to path

Ask Solem 12 年之前
父節點
當前提交
106e1bc29c
共有 1 個文件被更改,包括 1 次插入0 次删除
  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,
     def run(self, force_ipython=False, force_bpython=False,
             force_python=False, without_tasks=False, eventlet=False,
             force_python=False, without_tasks=False, eventlet=False,
             gevent=False, **kwargs):
             gevent=False, **kwargs):
+        sys.path.insert(0, os.getcwd())
         if eventlet:
         if eventlet:
             import_module('celery.concurrency.eventlet')
             import_module('celery.concurrency.eventlet')
         if gevent:
         if gevent: