#NEWLINE# def buildScripts( self ) : #NEWLINE# #INDENT# '\n        Write 3 types of scripts and run the L{build_scripts_twisted}\n        command.\n        ' #NEWLINE# self . writeScript ( self . source , 'script1' , '#! /usr/bin/env python2.7\n# bogus script w/ Python sh-bang\npass\n' ) #NEWLINE# self . writeScript ( self . source , 'script2.py' , '#!/usr/bin/python\n# bogus script w/ Python sh-bang\npass\n' ) #NEWLINE# self . writeScript ( self . source , 'shell.sh' , '#!/bin/sh\n# bogus shell script w/ sh-bang\nexit 0\n' ) #NEWLINE# expected = [ 'script1' , 'script2.py' , 'shell.sh' ] #NEWLINE# cmd = self . getBuildScriptsCmd ( self . target , [ self . source . child ( fn ) . path for fn in expected ] ) #NEWLINE# cmd . finalize_options ( ) #NEWLINE# cmd . run ( ) #NEWLINE# return self . target . listdir ( )