All pastes #66980 Raw Edit

hollowsoul

public python v1 · immutable
#66980 ·published 2006-06-18 21:38 UTC
rendered paste body
def temp_config_set(directory, filename, option, value):    src = (directory + filename + '.backup')    print ("Src = ", src)    print ("Option = ", option)    print ("Value = ", value)    config = ConfigParser.ConfigParser()    config.read(src)    config.set("Main", option, value)    config.write(src)  # Error on this line here  <<<<-------AttributeError: 'str' object has no attribute 'write'