#NEWLINE# def byteman_submit( self , opts ) : #NEWLINE# #INDENT# cdir = self . get_install_dir ( ) #NEWLINE# byteman_cmd = [ ] #NEWLINE# byteman_cmd . append ( os . path . join ( os . environ [ 'JAVA_HOME' ] , 'bin' , 'java' ) ) #NEWLINE# byteman_cmd . append ( '-cp' ) #NEWLINE# byteman_cmd . append ( glob . glob ( os . path . join ( cdir , 'build' , 'lib' , 'jars' , 'byteman-submit-[0-9]*.jar' ) ) [ 0 ] ) #NEWLINE# byteman_cmd . append ( 'org.jboss.byteman.agent.submit.Submit' ) #NEWLINE# byteman_cmd . append ( '-p' ) #NEWLINE# byteman_cmd . append ( self . byteman_port ) #NEWLINE# byteman_cmd += opts #NEWLINE# subprocess . Popen ( byteman_cmd ) . wait ( )