Forgot to add 'src' to sys.path

This commit is contained in:
Jeremy Fincher 2003-04-07 21:03:40 +00:00
parent 89fa7855da
commit 89fca3e5b6

View File

@ -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