'Converts an Apache Include directive into Augeas path.
Converts an Apache Include directive argument into an Augeas
searchable path
.. todo:: convert to use os.path.join()
:param str arg: Argument of Include directive
:returns: Augeas path string
:rtype: str'

def _get_include_path(self, arg):

    arg = arg.strip('\'"')
    if (not arg.startswith('/')):
        arg = os.path.normpath(os.path.join(self.root, arg))
    else:
        arg = os.path.normpath(arg)
    if os.path.isdir(arg):
        self._parse_file(os.path.join(arg, '*'))
    else:
        self._parse_file(arg)
    split_arg = arg.split('/')
    for (idx, split) in enumerate(split_arg):
        if any(((char in ApacheParser.fnmatch_chars) for char in split)):
            split_arg[idx] = ("*    [label()=~regexp('%s')]" % self.fnmatch_to_re(split))
    arg = '/'.join(split_arg)
    return get_aug_path(arg)
