def getProfileName(name, repository):
 if (repository.getProfileDirectory == None):
  return name
 return os.path.join(repository.getProfileDirectory(), name)

def getProfileName ( name , repository ) : if ( repository . getProfileDirectory == None ) : return name return os . path . join ( repository . getProfileDirectory ( ) , name )
get the profile name from the craft type name .