Call Export appropriately instead of using locals()

This commit is contained in:
Gunter Labes 2024-08-01 16:57:02 +02:00 committed by Sergey Popov
parent 00c081cb4b
commit 2b965290f6

View file

@ -155,8 +155,7 @@ def WesnothProgram(env, target, source, can_build, **kw):
else:
bin = env.Alias(target, [], error_action)
AlwaysBuild(bin)
locals()[target] = bin
Export(target)
Export({target: bin})
return bin
for env in [test_env, client_env, env]: