plugins/__init__.py
author lbessard
Fri, 31 Aug 2007 15:11:30 +0200
changeset 17 ee8cb104dbe0
parent 14 eb9fdd316a40
child 83 ad4dafe7bfee
permissions -rw-r--r--
First commit of Beremiz new version with plugin support
10
2aff8e8cd456 Plugin skeleton base - python package
etisserant
parents:
diff changeset
     1
from os import listdir, path
2aff8e8cd456 Plugin skeleton base - python package
etisserant
parents:
diff changeset
     2
12
a1f9e514f708 plugin framework organization being defined
etisserant
parents: 11
diff changeset
     3
_base_path = path.split(__file__)[0]
10
2aff8e8cd456 Plugin skeleton base - python package
etisserant
parents:
diff changeset
     4
12
a1f9e514f708 plugin framework organization being defined
etisserant
parents: 11
diff changeset
     5
__all__ = [name for name in listdir(_base_path) if path.isdir(path.join(_base_path, name)) and name != "CVS" or name.endswith(".py") and not name.startswith("__")]