I’m trying to create an array of all .asm files I need to build except for one that is causing me trouble right now. Here’s what I have, based on the Scons “Handling Common Cases” page:
projfiles['buildasm'] =
['#build/'+os.path.splitext(x)[0]+'.asm' for x in projfiles['a']];
(this maps paths of the form ‘foo.a’ to ‘#build/foo.asm’)
I want to run this for each member of projfiles['a'] except if a member of the array matches ‘baz.a’. How can I do this?
or more generally: