'Returns path of the requested output file and creates needed dirs.
`option` can be \'Output\', \'Log\', \'Report\', \'XUnit\' or \'DebugFile\'.'

def _get_output_file(self, option):

    name = self._opts[option]
    if (not name):
        return None
    if ((option == 'Log') and self._output_disabled()):
        self['Log'] = None
        LOGGER.error('Log    file    is    not    created    if    output.xml    is    disabled.')
        return None
    name = self._process_output_name(option, name)
    path = abspath(os.path.join(self['OutputDir'], name))
    self._create_output_dir(os.path.dirname(path), option)
    return path
