mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Forgot to add 'src' to sys.path
This commit is contained in:
parent
89fa7855da
commit
89fca3e5b6
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
sys.path.insert(0, 'src')
|
||||||
|
|
||||||
from questions import *
|
from questions import *
|
||||||
|
|
||||||
@ -46,6 +47,15 @@ from baseplugin import *
|
|||||||
import privmsgs
|
import privmsgs
|
||||||
import callbacks
|
import callbacks
|
||||||
|
|
||||||
|
|
||||||
|
def configure(onStart, afterConnect):
|
||||||
|
# This will be called by setup.py to configure this module. onStart and
|
||||||
|
# afterConnect are both lists. Append to onStart the commands you would
|
||||||
|
# like to be run when the bot is started; append to afterConnect the
|
||||||
|
# commands you would like to be run when the bot has finished connecting.
|
||||||
|
from questions import *
|
||||||
|
onStart.append('load %s')
|
||||||
|
|
||||||
class %s(%s):
|
class %s(%s):
|
||||||
%s
|
%s
|
||||||
|
|
||||||
@ -71,7 +81,7 @@ if __name__ == '__main__':
|
|||||||
threaded = 'pass'
|
threaded = 'pass'
|
||||||
|
|
||||||
fd = file(os.path.join('plugins', name + '.py'), 'w')
|
fd = file(os.path.join('plugins', name + '.py'), 'w')
|
||||||
fd.write(template % (name, className, threaded, name))
|
fd.write(template % (name, name, className, threaded, name))
|
||||||
fd.close()
|
fd.close()
|
||||||
print 'Your new plugin template is in plugins/%s.py' % name
|
print 'Your new plugin template is in plugins/%s.py' % name
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user