
    g                         d Z ddlZddlZddlmZ ddlmZ ddlmZ ddl	m
Z
 dZd	Z eej                  j                  d
d            Z G d de
      Zy)z@The default loader used when no custom app has been initialized.    N)NotConfiguredDictAttribute)	strtobool   )
BaseLoader)LoaderDEFAULT_CONFIG_MODULEceleryconfig	C_WNOCONFFc                       e Zd ZdZd ZddZy)r	   z#The loader used by the default app.c                     t        |      S )Nr   )selfsettingsdicts     W/var/www/html/hubwallet-dev/venv/lib/python3.12/site-packages/celery/loaders/default.pysetup_settingszLoader.setup_settings   s    \**    c                    t         j                  j                  dt              }	 | j	                  |      }d| _        | j                  |      S # t        $ rj |s t        rMt         j                  j                  d      s.t        j                  t        dj                  |                   | j                  i       cY S w xY w)z0Read configuration from :file:`celeryconfig.py`.CELERY_CONFIG_MODULETFORKED_BY_MULTIPROCESSINGzPNo {module} module found! Please make sure it exists and is available to Python.)module)osenvirongetr
   _import_config_module
configuredr   ImportErrorr   warningswarnr   format)r   fail_silently
confignameusercfgs       r   read_configurationzLoader.read_configuration   s    ZZ^^$:$9;
	000<G #DO&&w//  	+ 0K!Lm..4fJf.GI J &&r**	+s   A A0CCN)T)__name__
__module____qualname____doc__r   r$    r   r   r	   r	      s    -+0r   r	   )r(   r   r   celery.exceptionsr   celery.utils.collectionsr   celery.utils.serializationr   baser   __all__r
   r   r   r   r	   r)   r   r   <module>r/      sL    F 	  + 2 0 
-&  bjjnn[%89	0Z 0r   