diff options
| author | Pepper <pepper@scannerjammer.com> | 2016-03-02 20:24:12 -0500 |
|---|---|---|
| committer | Pepper <pepper@scannerjammer.com> | 2016-03-02 20:24:12 -0500 |
| commit | 1159eacbc62c2ab7c566be078c43c08bdfda8778 (patch) | |
| tree | 0c8c2c2b9f34cb52314b9619d24a916286242e78 /run_module_examples.py | |
| parent | dc9ea65dfa903611593da57c397ebc67f26bdea9 (diff) | |
pluginloader
Diffstat (limited to 'run_module_examples.py')
| -rw-r--r-- | run_module_examples.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/run_module_examples.py b/run_module_examples.py index 8a22c10..c6559c8 100644 --- a/run_module_examples.py +++ b/run_module_examples.py @@ -1,9 +1,13 @@ #!/usr/bin/python2.7 """calls the example_run method on all modules""" -from photoblaster.modules import Pb -for cls in Pb.__subclasses__(): - print cls.__name__ - if cls.__name__ == "PbGradient": +import pluginbase +from photoblaster.modules import Modules + + +modules = Modules() +for module_name in modules.list_modules(): + if module_name == 'pbgradient': + cls = modules.get_module(module_name) instance = cls.example_run() instance.get_output_file().s3move() print instance.get_output_file().as_dict() |
