def user_log_dir(appname, appauthor=None, version=None, opinion=True):
 if (sys.platform == 'darwin'):
  path = os.path.join(os.path.expanduser('~/Library/Logs'), appname)
 elif (sys.platform == 'win32'):
  path = user_data_dir(appname, appauthor, version)
  version = False
  if opinion:
   path = os.path.join(path, 'Logs')
 else:
  path = user_cache_dir(appname, appauthor, version)
  version = False
  if opinion:
   path = os.path.join(path, 'log')
 if version:
  path = os.path.join(path, version)
 return path

def user_log_dir ( appname , appauthor = None , version = None , opinion = True ) : if ( sys . platform == 'darwin' ) : path = os . path . join ( os . path . expanduser ( '~/Library/Logs' ) , appname ) elif ( sys . platform == 'win32' ) : path = user_data_dir ( appname , appauthor , version ) version = False if opinion : path = os . path . join ( path , 'Logs' ) else : path = user_cache_dir ( appname , appauthor , version ) version = False if opinion : path = os . path . join ( path , 'log' ) if version : path = os . path . join ( path , version ) return path
return full path to the user-specific log dir for this application .