test hypothesis for problem from Glenn Johnson on slack

This commit is contained in:
Gregory Becker 2023-02-23 15:49:56 -08:00
parent 6b27aebeb4
commit 79208db191

View File

@ -77,7 +77,8 @@ def environment_modifications_for_spec(spec, view=None, set_package_py_globals=T
"""
spec = spec.copy()
if view and not spec.external:
spec.prefix = prefix.Prefix(view.get_projection_for_spec(spec))
for node in spec.traverse():
node.prefix = prefix.Prefix(view.get_projection_for_spec(node))
# generic environment modifications determined by inspecting the spec
# prefix