← Back
Editing: disk_category_config.cpython-312.pyc
� �k � � � d Z ddlZd� Zy)zCRead the opt-in switch without importing the panel web application.� Nc �H � t j j | � sydd l} |j d� }t |t � sy|j dd� }t |t � r |j � j � dvS t |� S # t $ r Y yw xY w)NFr �disk_category_stats�enabled)�0�false�off�no) �os�path�isfile�public�read_config� Exception� isinstance�dict�get�str�strip�lower�bool)�config_pathr �configr s �0/www/server/panel/BTTask/disk_category_config.py� stats_enabledr s� � � �7�7�>�>�+�&�����#�#�$9�:�� �f�d�#���j�j��A�&�G��'�3���}�}��$�$�&�.I�I�I���=��� � ���s �B � B!� B!)�__doc__r r � � r �<module>r s �� I� � r
Save File
Cancel