Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/p/2/P2PEM-0.1/P2PEM/manager/shaping.py   P2PEM(Download)
        self.logger.info("Tear down - shaping")
 
        executor.execute_as_root_simple("python %s tear_etc_hosts" % self.etc_shape_path)
        self.logger.info("Tear down - removed hosts from " + shape_etchosts.etc_hosts)
 
        ips = ' '.join(ip_addrs)
 
        executor.execute_as_root_simple("python %s init_etc_hosts %s" % (self.etc_shape_path, ips))
 
        self.logger.info("Scenario pre - added hosts to " + shape_etchosts.etc_hosts + ": ip_addrs="+ `ip_addrs`)