def log_dir():
 init()
 if (sys.platform == 'darwin'):
  name = str(QCoreApplication.applicationName())
  logdir = os.path.join(os.path.expanduser('~/Library/Logs'), name)
 else:
  logdir = data_dir()
 if (not os.path.exists(logdir)):
  os.makedirs(logdir)
 return logdir

def log_dir ( ) : init ( ) if ( sys . platform == 'darwin' ) : name = str ( QCoreApplication . applicationName ( ) ) logdir = os . path . join ( os . path . expanduser ( '~/Library/Logs' ) , name ) else : logdir = data_dir ( ) if ( not os . path . exists ( logdir ) ) : os . makedirs ( logdir ) return logdir
return the application log directory .