o
    ¯b4  ã                   @   sD   d Z ddlZddlmZ ddlZddlmZ d
dedefdd	„ZdS )z%
Application data directory support.
é    N)Úcast)ÚcurrentframeÚ Ú
moduleNameÚreturnc                 C   s8   | st dƒ}t |¡}|dusJ ‚|j} ttt | ¡ƒS )zá
    Get a data directory for the caller function, or C{moduleName} if given.

    @param moduleName: The module name if you don't wish to have the caller's
        module.

    @returns: A directory for putting data in.
    é   N)r   ÚinspectÚ	getmoduleÚ__name__r   ÚstrÚappdirsÚuser_data_dir)r   ÚcallerÚmodule© r   ú9/usr/lib/python3/dist-packages/twisted/python/_appdirs.pyÚgetDataDirectory   s   	
r   )r   )	Ú__doc__r   Útypingr   r   Útwisted.python.compatr   r   r   r   r   r   r   Ú<module>   s   