"""Automatically sets the environment variable `CELERY_LOADER` to`celerypylons.loader:PylonsLoader`. This ensures the loader isspecified when accessing the rest of this package, and allows celeryto be installed in a webapp just by importing celerypylons:: import celerypylons"""importosimportwarningsCELERYPYLONS_LOADER='rhodecode.lib.celerypylons.loader.PylonsLoader'ifos.environ.get('CELERY_LOADER',CELERYPYLONS_LOADER)!=CELERYPYLONS_LOADER:warnings.warn("'CELERY_LOADER' environment variable will be overridden by celery-pylons.")os.environ['CELERY_LOADER']=CELERYPYLONS_LOADER