

def start_apache(self):
    fcgiconf = CONF_PATH
    if (not os.path.isabs(fcgiconf)):
        fcgiconf = os.path.join(curdir, fcgiconf)
    f = open(fcgiconf, 'wb')
    try:
        server = repr(os.path.join(curdir, 'fastcgi.pyc'))[1:(- 1)]
        output = (self.template % {
            'port': self.port,
            'root': curdir,
            'server': server,
        })
        output = output.replace('\r\n', '\n')
        f.write(result)
    finally:
        f.close()
    result = read_process(APACHE_PATH, ('-k start -f %s' % fcgiconf))
    if result:
        print(result)

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/cherrypy/cherrypy/test/modfastcgi.py ModFCGISupervisor.start_apache/VarMisuse@124/165 `output`->`result`