def getReadRepository(repository):
 text = archive.getFileText(archive.getProfilesPath(getProfileBaseName(repository)), False)
 if (text == ''):
  if (repository.baseNameSynonym != None):
   text = archive.getFileText(archive.getProfilesPath(getProfileBaseNameSynonym(repository)), False)
 if (text == ''):
  print ('The default %s will be written in the .skeinforge folder in the home directory.' % repository.title.lower())
  text = archive.getFileText(getProfilesDirectoryInAboveDirectory(getProfileBaseName(repository)), False)
  if (text != ''):
   readSettingsFromText(repository, text)
  writeSettings(repository)
  temporaryApplyOverrides(repository)
  return repository
 readSettingsFromText(repository, text)
 temporaryApplyOverrides(repository)
 return repository

def getReadRepository ( repository ) : text = archive . getFileText ( archive . getProfilesPath ( getProfileBaseName ( repository ) ) , False ) if ( text == '' ) : if ( repository . baseNameSynonym != None ) : text = archive . getFileText ( archive . getProfilesPath ( getProfileBaseNameSynonym ( repository ) ) , False ) if ( text == '' ) : print ( 'The default %s will be written in the .skeinforge folder in the home directory.' % repository . title . lower ( ) ) text = archive . getFileText ( getProfilesDirectoryInAboveDirectory ( getProfileBaseName ( repository ) ) , False ) if ( text != '' ) : readSettingsFromText ( repository , text ) writeSettings ( repository ) temporaryApplyOverrides ( repository ) return repository readSettingsFromText ( repository , text ) temporaryApplyOverrides ( repository ) return repository
read and return settings from a file .