always apply postprocess
This commit is contained in:
parent
2ccef554db
commit
5ffcadb362
@ -542,7 +542,10 @@ def load_library(
|
|||||||
# Full load approach (immediately load everything)
|
# Full load approach (immediately load everything)
|
||||||
patterns, library_info = read(stream)
|
patterns, library_info = read(stream)
|
||||||
for name, pattern in patterns.items():
|
for name, pattern in patterns.items():
|
||||||
lib[name] = lambda: pattern
|
if postprocess is not None:
|
||||||
|
lib[name] = postprocess(lib, name, pattern)
|
||||||
|
else:
|
||||||
|
lib[name] = pattern
|
||||||
return lib, library_info
|
return lib, library_info
|
||||||
|
|
||||||
# Normal approach (scan and defer load)
|
# Normal approach (scan and defer load)
|
||||||
|
Loading…
Reference in New Issue
Block a user