mirror of https://gitlab.com/ita1024/waf.git
Use adequate variable for include paths in protoc.py
This commit is contained in:
parent
c5d0619c9e
commit
04556a4d28
|
@ -51,8 +51,6 @@ class protoc(Task):
|
|||
|
||||
if not node: return (nodes, names)
|
||||
|
||||
search_paths = [self.generator.path.find_node(x) for x in self.generator.includes]
|
||||
|
||||
def parse_node(node):
|
||||
if node in seen:
|
||||
return
|
||||
|
@ -62,7 +60,7 @@ class protoc(Task):
|
|||
m = re.search(r'^import\s+"(.*)";.*(//)?.*', line)
|
||||
if m:
|
||||
dep = m.groups()[0]
|
||||
for incpath in search_paths:
|
||||
for incpath in self.env.INCPATHS:
|
||||
found = incpath.find_resource(dep)
|
||||
if found:
|
||||
nodes.append(found)
|
||||
|
|
Loading…
Reference in New Issue