def deploy_script(scriptpath, *args):
 put(local_path=scriptpath, remote_path='', mirror_local_mode=True)
 scriptfile = os.path.split(scriptpath)[1]
 args_str = ' '.join(args)
 run(((('./' + scriptfile) + ' ') + args_str))

def deploy_script ( scriptpath , * args ) : put ( local_path = scriptpath , remote_path = '' , mirror_local_mode = True ) scriptfile = os . path . split ( scriptpath ) [ 1 ] args_str = ' ' . join ( args ) run ( ( ( ( './' + scriptfile ) + ' ' ) + args_str ) )
copies to remote and executes local script .