MCPcopy Index your code
hub / github.com/SLiCAP/SLiCAP_python / load

Function load

SLiCAP/schematic/config.py:161–173  ·  view source on GitHub ↗

Load global defaults (style.ini), then a schematic's overrides on top. The global style.ini is the template for new schematics; an opened schematic's `` .ini`` (a full style snapshot) overrides it so the drawing always looks as it did when saved, regardless of this machine's gl

(schematic_ini=None)

Source from the content-addressed store, hash-verified

159
160
161def load(schematic_ini=None) -> None:
162 """Load global defaults (style.ini), then a schematic's overrides on top.
163
164 The global style.ini is the template for new schematics; an opened
165 schematic&#x27;s ``<name>.ini`` (a full style snapshot) overrides it so the
166 drawing always looks as it did when saved, regardless of this machine&#x27;s
167 global defaults.
168 """
169 _cfg.clear()
170 _cfg.read(STYLE_FILE)
171 if schematic_ini is not None and Path(schematic_ini).is_file():
172 _cfg.read(str(schematic_ini))
173 _apply()
174
175
176def reload() -> None:

Callers 1

reloadFunction · 0.85

Calls 2

_applyFunction · 0.85
clearMethod · 0.80

Tested by

no test coverage detected