def copy_monitordir(host):
 tmp_dir = host.get_tmp_dir()
 host.send_file(MONITORDIR, tmp_dir)
 return os.path.join(tmp_dir, 'monitors')

def copy_monitordir ( host ) : tmp_dir = host . get_tmp_dir ( ) host . send_file ( MONITORDIR , tmp_dir ) return os . path . join ( tmp_dir , 'monitors' )
copy over monitordir to a tmpdir on the remote host .