~ubuntu-branches/ubuntu/utopic/gozerbot/utopic

« back to all changes in this revision

Viewing changes to gozerbot/__init__.py

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Malcolm
  • Date: 2009-09-14 09:00:29 UTC
  • mfrom: (1.1.4 upstream) (3.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20090914090029-uval0ekt72kmklxw
Tags: 0.9.1.3-3
Changed dependency on python-setuptools to python-pkg-resources
(Closes: #546435) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#
3
3
#
4
4
 
5
 
""" register all .py files """
 
5
""" gozerbot core package. """
6
6
 
7
7
__copyright__ = 'this file is in the public domain'
8
8
 
 
9
__version__ = "0.9.1.3"
 
10
 
 
11
__all__ = ['aliases', 'database', 'ignore', 'periodical', 'tests', \
 
12
'botbase',  'datadir', 'persist', 'threads', \
 
13
'cache', 'eventbase', 'irc', 'plughelp', 'users', \
 
14
'callbacks', 'eventhandler', 'jabber', 'plugins', 'utils', \
 
15
'channels', 'examples', 'jsonusers', 'plugs', 'wait', \
 
16
'commands', 'exit', 'less', 'redispatcher', \
 
17
'compat', 'fleet', 'monitor', 'rest', \
 
18
'config', 'morphs', 'runner', \
 
19
'contrib', 'gozerimport', 'partyline', 'stats', 'utils', 'reboot', 'xmpp']
 
20
 
 
21
# ==============
 
22
# IMPORT SECTION
 
23
 
 
24
from eggs import loadegg
9
25
import os
10
 
import exit
11
 
 
12
 
(f, tail) = os.path.split(__file__)
13
 
__all__ = []
14
 
 
15
 
for i in os.listdir(f):
16
 
    if i.endswith('.py'):
17
 
        __all__.append(i[:-3])
18
 
__all__.remove('__init__')
19
 
 
20
 
del f, tail
 
26
 
 
27
# END IMPORT
 
28
# ==========
 
29
 
 
30
# ============
 
31
# LOCK SECTION
 
32
 
 
33
# no locks
 
34
 
 
35
# END LOCK
 
36
# ========
 
37
 
 
38
# ============
 
39
# INIT SECTION
 
40
 
 
41
loadegg('simplejson', [os.getcwd(), os.getcwd() + os.sep + 'gozernest'], log=False)
 
42
loadegg('sqlalchemy', [os.getcwd(), os.getcwd() + os.sep + 'gozernest'], log=False)
 
43
 
 
44
# END INIT
 
45
# ========
 
 
b'\\ No newline at end of file'