Browse Source

Making these add the current working directory to the front of sys.path.

Jason Baker 15 năm trước cách đây
mục cha
commit
e98e8e5392
2 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 1 0
      bin/celeryd
  2. 2 1
      bin/celeryinit

+ 1 - 0
bin/celeryd

@@ -1,5 +1,6 @@
 #!/usr/bin/env python
 import sys
+sys.path.insert(0, '')
 from celery.bin.celeryd import run_worker, parse_options
 
 if __name__ == "__main__":

+ 2 - 1
bin/celeryinit

@@ -1,5 +1,6 @@
 #!/usr/bin/env python
-
+import sys
+sys.path.insert(0, '')
 from celery.bin.celeryinit import main
 
 if __name__ == "__main__":