#NEWLINE# def getDataDirectory( moduleName = None ) : #NEWLINE# #INDENT# "\n    Get a data directory for the caller function, or C{moduleName} if given.\n\n    @param moduleName: The module name if you don't wish to have the caller's\n        module.\n    @type moduleName: L{str}\n\n    @returns: A directory for putting data in.\n    @rtype: L{str}\n    " #NEWLINE# if ( not moduleName ) : #NEWLINE# #INDENT# caller = currentframe ( 1 ) #NEWLINE# moduleName = inspect . getmodule ( moduleName ) . __name__ #NEWLINE# #UNINDENT# return appdirs . user_data_dir ( moduleName )