소스 검색

celery shell command should add cwd to path

Ask Solem 12 년 전
부모
커밋
e59144bc3f
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      celery/bin/celery.py

+ 1 - 0
celery/bin/celery.py

@@ -789,6 +789,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: