| 495 | syspath = sys.path |
| 496 | |
| 497 | def register_scripts_from_module(module): |
| 498 | for script_class in module.__dict__.values(): |
| 499 | if not inspect.isclass(script_class): |
| 500 | continue |
| 501 | |
| 502 | if issubclass(script_class, Script): |
| 503 | scripts_data.append(ScriptClassData(script_class, scriptfile.path, scriptfile.basedir, module)) |
| 504 | elif issubclass(script_class, scripts_postprocessing.ScriptPostprocessing): |
| 505 | postprocessing_scripts_data.append(ScriptClassData(script_class, scriptfile.path, scriptfile.basedir, module)) |
| 506 | |
| 507 | # here the scripts_list is already ordered |
| 508 | # processing_script is not considered though |