Create an object by parsing the supplied python script. :param script_source: a python script to parse
(self, script_source)
| 36 | """ |
| 37 | |
| 38 | def __init__(self, script_source): |
| 39 | """ |
| 40 | Create an object by parsing the supplied python script. |
| 41 | |
| 42 | :param script_source: a python script to parse |
| 43 | """ |
| 44 | self.metadata = ScriptMetadata() |
| 45 | self.ast_tree = ast.parse(script_source, CQSCRIPT) |
| 46 | self.script_source = script_source |
| 47 | self._find_vars() |
| 48 | |
| 49 | # TODO: pick up other script metadata: |
| 50 | # describe |
| 51 | # pick up validation methods |
| 52 | self._find_descriptions() |
| 53 | |
| 54 | def _find_vars(self): |
| 55 | """ |
nothing calls this directly
no test coverage detected