()
return logdir
Return the application log directory.
Return the application log directory.
Return the application log directory .
def log_dir():
    """
    Return the application log directory.
    """
    if sys.platform == "darwin":
        name = Config.ApplicationName
        logdir = os.path.join(os.path.expanduser("~/Library/Logs"), name)
    else:
        logdir = data_dir()

    logdir = environ.get_path("log_dir", logdir)

    try:
        os.makedirs(logdir, exist_ok=True)
    except OSError:
        pass
    return logdir
def log_dir ( ) : if sys . platform == "darwin" : name = Config . ApplicationName logdir = os . path . join ( os . path . expanduser ( "~/Library/Logs" ) , name ) else : logdir = data_dir ( ) logdir = environ . get_path ( "log_dir" , logdir ) try : os . makedirs ( logdir , exist_ok = True ) except OSError : pass return logdir