def get_parent_theme_name(theme_name, themes_dirs=None):
 parent_path = os.path.join(theme_name, u'parent')
 if os.path.isfile(parent_path):
  with open(parent_path) as fd:
   parent = fd.readlines()[0].strip()
  if themes_dirs:
   return get_theme_path_real(parent, themes_dirs)
  return parent
 return None

def get_parent_theme_name ( theme_name , themes_dirs = None ) : parent_path = os . path . join ( theme_name , u'parent' ) if os . path . isfile ( parent_path ) : with open ( parent_path ) as fd : parent = fd . readlines ( ) [ 0 ] . strip ( ) if themes_dirs : return get_theme_path_real ( parent , themes_dirs ) return parent return None
get name of parent theme .