mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
Um, yeah...strings are immutable in Python. I should know that.
This commit is contained in:
parent
66b64bd002
commit
e368e90723
@ -55,14 +55,15 @@ if __name__ == '__main__':
|
||||
except ImportError, e:
|
||||
sys.stderr.write('Invalid script file: %s\n' % e)
|
||||
sys.exit(-1)
|
||||
template.replace('%%nick%%', repr(script.defaultNick))
|
||||
template.replace('%%user%%', repr(script.defaultUser))
|
||||
template.replace('%%ident%%', repr(script.defaultIdent))
|
||||
template.replace('%%server%%', repr(script.defaultServer))
|
||||
template.replace('%%password%%', repr(script.defaultPassword))
|
||||
template.replace('%%onStart%%', repr(conf.commandsOnStart))
|
||||
template.replace('%%afterConnect%%', repr(script.afterConnect))
|
||||
template.replace('%%configVariables%%', repr(script.configVariables))
|
||||
template = template.replace('%%nick%%', repr(script.defaultNick))
|
||||
template = template.replace('%%user%%', repr(script.defaultUser))
|
||||
template = template.replace('%%ident%%', repr(script.defaultIdent))
|
||||
template = template.replace('%%server%%', repr(script.defaultServer))
|
||||
template = template.replace('%%password%%', repr(script.defaultPassword))
|
||||
template = template.replace('%%onStart%%', repr(conf.commandsOnStart))
|
||||
template = template.replace('%%afterConnect%%', repr(script.afterConnect))
|
||||
template = template.replace('%%configVariables%%',
|
||||
repr(script.configVariables))
|
||||
os.rename(sys.argv[1], sys.argv[1] + '.bak')
|
||||
fd = file(sys.argv[1], 'w')
|
||||
fd.write(template)
|
||||
|
Loading…
Reference in New Issue
Block a user