MCPcopy Index your code
hub / github.com/CadQuery/cadquery / __init__

Method __init__

cadquery/cqgi.py:38–52  ·  view source on GitHub ↗

Create an object by parsing the supplied python script. :param script_source: a python script to parse

(self, script_source)

Source from the content-addressed store, hash-verified

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 """

Callers

nothing calls this directly

Calls 3

_find_varsMethod · 0.95
_find_descriptionsMethod · 0.95
ScriptMetadataClass · 0.85

Tested by

no test coverage detected