Skip to content

Instantly share code, notes, and snippets.

@quarkness
quarkness / __init__.py
Created September 3, 2012 08:49 — forked from nacx/__init__.py
Pluggable command line tool
import os
# Automatically set the __all__ variable with all
# the available plugins.
plugin_dir = "plugins"
__all__ = []
for filename in os.listdir(plugin_dir):
filename = plugin_dir + "/" + filename