Updated template for the new distutils install and gave it the ability to run on its own.

This commit is contained in:
Jeremy Fincher 2003-09-24 07:27:13 +00:00
parent d97698d315
commit 0bbaa4a30c

View File

@ -30,7 +30,7 @@
###
"""
This is the template for bots. scripts/setup.py uses this file to make
This is the template for bots. supybot-wizard.py uses this file to make
customized startup files for bots.
"""
@ -46,24 +46,24 @@ import optparse
started = time.time()
if 'src' not in sys.path:
sys.path.insert(0, 'src')
import supybot
import conf
defaultNick = %%nick%%
defaultUser = %%user%%
defaultIdent = %%ident%%
defaultServer = %%server%%
defaultPassword = %%password%%
defaultNick = "%%nick%%"
defaultUser = "%%user%%"
defaultIdent = "%%ident%%"
defaultServer = "%%server%%"
defaultPassword = "%%password%%"
conf.commandsOnStart = %%onStart%%
conf.commandsOnStart = "%%onStart%%"
afterConnect = %%afterConnect%%
afterConnect = "%%afterConnect%%"
configVariables = %%configVariables%%
configVariables = "%%configVariables%%"
for (name, value) in configVariables.iteritems():
if not isinstance(configVariables, basestring):
for (name, value) in configVariables.iteritems():
setattr(conf, name, value)