mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Updated template for the new distutils install and gave it the ability to run on its own.
This commit is contained in:
parent
d97698d315
commit
0bbaa4a30c
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user