mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +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.
|
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)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user