plugins/__init__.py
author etisserant
Mon, 27 Aug 2007 17:54:55 +0200
changeset 13 f1f0edbeb313
parent 12 a1f9e514f708
child 14 eb9fdd316a40
permissions -rw-r--r--
More precise design for plugins.... to be continued...
10
2aff8e8cd456 Plugin skeleton base - python package
etisserant
parents:
diff changeset
     1
from os import listdir, path
13
f1f0edbeb313 More precise design for plugins.... to be continued...
etisserant
parents: 12
diff changeset
     2
from __templates import PlugTemplate
10
2aff8e8cd456 Plugin skeleton base - python package
etisserant
parents:
diff changeset
     3
12
a1f9e514f708 plugin framework organization being defined
etisserant
parents: 11
diff changeset
     4
_base_path = path.split(__file__)[0]
10
2aff8e8cd456 Plugin skeleton base - python package
etisserant
parents:
diff changeset
     5
12
a1f9e514f708 plugin framework organization being defined
etisserant
parents: 11
diff changeset
     6
__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("__")]
10
2aff8e8cd456 Plugin skeleton base - python package
etisserant
parents:
diff changeset
     7
13
f1f0edbeb313 More precise design for plugins.... to be continued...
etisserant
parents: 12
diff changeset
     8
#for name in __all__:
f1f0edbeb313 More precise design for plugins.... to be continued...
etisserant
parents: 12
diff changeset
     9
#    __import__(name, globals(), locals(), [])
12
a1f9e514f708 plugin framework organization being defined
etisserant
parents: 11
diff changeset
    10