from .gtags_def import GtagsBase

class Source(GtagsBase):

    def __init__(self, vim):
        super().__init__(vim)

        self.name = 'gtags_path'
        self.kind = 'file'

    @classmethod
    def get_search_flags(cls):
        return ['-P']

    def gather_candidates(self, context):
        tags = self.exec_global(self.get_search_flags())
        candidates = self._convert_to_candidates(tags)
        return candidates

    @classmethod
    def _convert_to_candidates(cls, tags):
        return [{'word': t, 'action__path': t} for t in tags]

from .gtags_def import GtagsBase

class Source(GtagsBase):

    def __init__(self, vim):
        super().__init__(vim)

        self.name = 'gtags_path'
        self.kind = 'file'

    @classmethod
    def get_search_flags(cls):
        return ['-P']

    def gather_candidates(self, context):
        tags = self.exec_global(self.get_search_flags(), context)
        candidates = self._convert_to_candidates(tags)
        return candidates

    @classmethod
    def _convert_to_candidates(cls, tags):
        return [{'word': t, 'action__path': t} for t in tags]

Fix missing parameter in path source
Fix missing parameter in path source
