def temporaryApplyOverrides(repository):
 global globalTemporaryOverrides
 if (repository.baseName in globalTemporaryOverrides):
  settingTable = {}
  for setting in repository.preferences:
   settingTable[setting.name] = setting
  for (name, value) in globalTemporaryOverrides[repository.baseName].items():
   if (name in settingTable):
    settingTable[name].setValueToString(value)
   else:
    print ('Override not applied for: %s, %s' % (name, value))

def temporaryApplyOverrides ( repository ) : global globalTemporaryOverrides if ( repository . baseName in globalTemporaryOverrides ) : settingTable = { } for setting in repository . preferences : settingTable [ setting . name ] = setting for ( name , value ) in globalTemporaryOverrides [ repository . baseName ] . items ( ) : if ( name in settingTable ) : settingTable [ name ] . setValueToString ( value ) else : print ( 'Override not applied for: %s, %s' % ( name , value ) )
apply any overrides that have been set at the command line .