MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / setup

Method setup

src/licensedcode/plugin_license.py:150–159  ·  view source on GitHub ↗

This is a cache warmup such that child process inherit from the loaded index.

(self, **kwargs)

Source from the content-addressed store, hash-verified

148 return license
149
150 def setup(self, **kwargs):
151 """
152 This is a cache warmup such that child process inherit from the
153 loaded index.
154 """
155 if kwargs.get("package_only"):
156 return
157
158 from licensedcode.cache import populate_cache
159 populate_cache()
160
161 def get_scanner(
162 self,

Callers

nothing calls this directly

Calls 2

populate_cacheFunction · 0.90
getMethod · 0.65

Tested by

no test coverage detected