def paths():
 sheet_paths = [default_path(), cheatsheets.sheets_dir()[0]]
 if (('CHEATPATH' in os.environ) and os.environ['CHEATPATH']):
  for path in os.environ['CHEATPATH'].split(os.pathsep):
   if os.path.isdir(path):
    sheet_paths.append(path)
 if (not sheet_paths):
  die('The DEFAULT_CHEAT_DIR dir does not exist or the CHEATPATH is not set.')
 return sheet_paths

def paths ( ) : sheet_paths = [ default_path ( ) , cheatsheets . sheets_dir ( ) [ 0 ] ] if ( ( 'CHEATPATH' in os . environ ) and os . environ [ 'CHEATPATH' ] ) : for path in os . environ [ 'CHEATPATH' ] . split ( os . pathsep ) : if os . path . isdir ( path ) : sheet_paths . append ( path ) if ( not sheet_paths ) : die ( 'The DEFAULT_CHEAT_DIR dir does not exist or the CHEATPATH is not set.' ) return sheet_paths
assembles a list of directories containing cheatsheets .