def find_gopaths(self):
        # collect existing Go path info
        goroot = set(os.path.normpath(s) for s in os.environ.get('GOROOT', '').split(os.pathsep))
        gopath = set(os.path.normpath(s) for s in os.environ.get('GOPATH', '').split(os.pathsep))
        if '.' in gopath:
            gopath.remove('.')
        gopath = list(gopath)

        # search for potential GOPATHs upstream from filename
        # (reversed to ensure deepest path is first searched)
        dirparts = os.path.dirname(self.filename).split(os.sep)
        for i in range(len(dirparts) - 1, 1, -1):
            if dirparts[i].lower() != "src":
                continue
            p = os.path.normpath(os.sep.join(dirparts[:i]))
            if p not in goroot and p not in gopath:
                gopath.append(p)

        if persist.debug_mode():
            persist.printf("{}: {} {}".format(self.name,
                                              os.path.basename(self.filename or '<unsaved>'),
                                              "guessed GOPATH=" + os.pathsep.join(gopath)))

        return os.pathsep.join(gopath)
Generate all the positive roots of A_n
dataset/ETHPy150Open sirreal/SublimeLinter-contrib-golint/linter.py/Golint.find_gopaths--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/liealgebras/type_f.py/TypeF.positive_roots