def getDataDirectory(moduleName=None):
 if (not moduleName):
  caller = currentframe(1)
  moduleName = inspect.getmodule(caller).__name__
 return appdirs.user_data_dir(moduleName)

def getDataDirectory ( moduleName = None ) : if ( not moduleName ) : caller = currentframe ( 1 ) moduleName = inspect . getmodule ( caller ) . __name__ return appdirs . user_data_dir ( moduleName )
get a data directory for the caller function .