def _get_dirs(user_dir, startup_dir):
 try:
  users = os.listdir(user_dir)
 except WindowsError:
  users = []
 full_dirs = []
 for user in users:
  full_dir = os.path.join(user_dir, user, startup_dir)
  if os.path.exists(full_dir):
   full_dirs.append(full_dir)
 return full_dirs

def _get_dirs ( user_dir , startup_dir ) : try : users = os . listdir ( user_dir ) except WindowsError : users = [ ] full_dirs = [ ] for user in users : full_dir = os . path . join ( user_dir , user , startup_dir ) if os . path . exists ( full_dir ) : full_dirs . append ( full_dir ) return full_dirs
return a list of startup dirs .