U
    
W[  ã                   @   s>   d Z ddlmZmZ ddlZddlZddlmZ ddd„ZdS )z%
Application data directory support.
é    )ÚdivisionÚabsolute_importN)Úcurrentframec                 C   s"   | st dƒ}t |¡j} t | ¡S )a  
    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.
    @type moduleName: L{str}

    @returns: A directory for putting data in.
    @rtype: L{str}
    é   )r   ÚinspectZ	getmoduleÚ__name__ÚappdirsZuser_data_dir)Z
moduleNameZcaller© r	   ú9/usr/lib/python3/dist-packages/twisted/python/_appdirs.pyÚgetDataDirectory   s    r   )N)	Ú__doc__Z
__future__r   r   r   r   Ztwisted.python.compatr   r   r	   r	   r	   r
   Ú<module>   s
   