U
    Â“«j<  ã                   @   sB   d Z ddlZddlmZ ddlZddlmZ d	eedœdd„ZdS )
z%
Application data directory support.
é    N)Úcast)ÚcurrentframeÚ )Ú
moduleNameÚreturnc                 C   s8   | s(t dƒ}t |¡}|dk	s"t‚|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ÚAssertionErrorÚ__name__r   ÚstrÚappdirsÚuser_data_dir)r   ZcallerÚmodule© r   ú;/tmp/pip-unpacked-wheel-59kc99xd/twisted/python/_appdirs.pyÚgetDataDirectory   s    	
r   )r   )	Ú__doc__r   Útypingr   r   Ztwisted.python.compatr   r   r   r   r   r   r   Ú<module>   s
   