source:
artig/plugins/__init__.py
@
366
| Revision 366, 233 bytes checked in by shiml, 6 months ago (diff) |
|---|
| Line | |
|---|---|
| 1 | import os |
| 2 | |
| 3 | ## imports everything ending in .py |
| 4 | for module in os.listdir(os.path.dirname(__file__)): |
| 5 | if module == '__init__.py' or module[-3:] != '.py': |
| 6 | continue |
| 7 | __import__(module[:-3], locals(), globals()) |
| 8 | del module |
Note: See TracBrowser
for help on using the repository browser.

