def get_theme_dirs(themes_dir=None):
 return [_dir for _dir in os.listdir(themes_dir) if is_theme_dir((themes_dir / _dir))]

def get_theme_dirs ( themes_dir = None ) : return [ _dir for _dir in os . listdir ( themes_dir ) if is_theme_dir ( ( themes_dir / _dir ) ) ]
returns theme dirs in given dirs args: themes_dir : base dir that contains themes .