buildtools/wafsamba: re-write shebang for delivered python scripts

Can't see how the orig code would have worked though a) task.env["PYTHON"] is a list b) task.env["PYTHON_SPECIFIED"] can (and is in our case false) looks like it would only be true for python2 but in anycase no harm we always rewrite the shebang

Signed-off-by: Noel Power noel.power@suse.com

Merge request reports

Loading