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

« back to all changes in this revision

Viewing changes to build/lib/gplugs/alchemy/__init__.py

  • Committer: Package Import Robot
  • Author(s): Jeremy Malcolm
  • Date: 2012-04-03 21:58:28 UTC
  • mfrom: (3.1.11 sid)
  • Revision ID: package-import@ubuntu.com-20120403215828-6mik0tzug5na93la
Tags: 0.99.1-2
* Removes logfiles on purge (Closes: #668767)
* Reverted location of installed files back to /usr/lib/gozerbot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# gozerbot basic plugins
 
2
#
 
3
#
 
4
 
 
5
""" register all .py files """
 
6
 
 
7
__copyright__ = 'this file is in the public domain'
 
8
 
 
9
import os
 
10
 
 
11
(f, tail) = os.path.split(__file__)
 
12
__all__ = []
 
13
 
 
14
for i in os.listdir(f):
 
15
    if i.endswith('.py'):
 
16
        __all__.append(i[:-3])
 
17
    elif os.path.isdir(f + os.sep + i) and not i.startswith('.'):
 
18
        __all__.append(i)
 
19
 
 
20
try:
 
21
    __all__.remove('__init__')
 
22
except:
 
23
    pass
 
24
 
 
25
__plugs__ = __all__