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. customized startup files for bots.
""" """
@ -46,24 +46,24 @@ import optparse
started = time.time() started = time.time()
if 'src' not in sys.path: import supybot
sys.path.insert(0, 'src')
import conf import conf
defaultNick = %%nick%% defaultNick = "%%nick%%"
defaultUser = %%user%% defaultUser = "%%user%%"
defaultIdent = %%ident%% defaultIdent = "%%ident%%"
defaultServer = %%server%% defaultServer = "%%server%%"
defaultPassword = %%password%% 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) setattr(conf, name, value)