def get_project_root_name():
 root = Path(settings.PROJECT_ROOT)
 if (root.name == ''):
  root = root.parent
 return root.name

def get_project_root_name ( ) : root = Path ( settings . PROJECT_ROOT ) if ( root . name == '' ) : root = root . parent return root . name
return root name for the current project example: >> get_project_root_name() lms # from studio >> get_project_root_name() cms returns: : component name of platform e .