~mgorven/ibid/dialing-codes-factpack

« back to all changes in this revision

Viewing changes to ibid/plugins/__init__.py

  • Committer: Stefano Rivera
  • Date: 2010-01-04 22:04:04 UTC
  • mfrom: (813.1.4 external-modules-501728)
  • Revision ID: stefano@rivera.za.net-20100104220404-htt3hjg5hxar2l8t
Add base to the beginning of sys.path. Goodbye PYTHONPATH=.
This will allow local libraries and plugins in the bot-dir.

https://code.launchpad.net/~stefanor/ibid/external-modules-501728/+merge/16737

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
import re
6
6
 
7
7
from twisted.spread import pb
 
8
from twisted.plugin import pluginPackagePaths
8
9
from twisted.web import resource
9
10
 
10
11
import ibid
11
12
from ibid.compat import json
12
13
 
 
14
__path__.extend(pluginPackagePaths(__name__))
 
15
 
13
16
class Processor(object):
14
17
    """Base class for Ibid plugins.
15
18
    Processors receive events and (optionally) do things with them.