فهرست منبع

Set __package__ the same way in celeryd as elsewhere

This fixes a NameError on __package__ that got me on Python 2.5
Martin Melin 13 سال پیش
والد
کامیت
7b5abb5fbc
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      celery/bin/celeryd.py

+ 1 - 1
celery/bin/celeryd.py

@@ -73,7 +73,7 @@
 """
 from __future__ import absolute_import
 
-if "__main__" and __package__ is None:
+if __name__ == "__main__" and __package__ is None:
     __package__ = "celery.bin.celeryd"
 
 import sys