def _start_agent(self):
    agent_dir = os.path.join(self.get_path(), 'datastax-agent')
    if os.path.exists(agent_dir):
        self._write_agent_address_yaml(agent_dir)
        self._write_agent_log4j_properties(agent_dir)
        args = [os.path.join(agent_dir, 'bin', common.platform_binary('datastax-agent'))]
        subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
def _start_agent(self):
    agent_dir = os.path.join(self.get_path(), 'datastax-agent')
    if os.path.exists(agent_dir):
        self._write_agent_address_yaml(agent_dir)
        self._write_agent_log4j_properties(agent_dir)
        args = [os.path.join(agent_dir, 'bin', common.platform_binary('datastax-agent'))]
        subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)