Scope parameter included in build by cmake/configs

Conflicts:
	Tools/px_generate_params.py
	src/lib/ecl
This commit is contained in:
David Sidrane
2015-11-05 11:48:35 -10:00
committed by Lorenz Meier
parent 93d261a558
commit 64d43ad381
5 changed files with 106 additions and 14 deletions
+3 -1
View File
@@ -33,6 +33,8 @@ class SourceScanner(object):
Scans provided file and passes its contents to the parser using
parser.Parse method.
"""
prefix = ".." + os.path.sep + "src" + os.path.sep
scope = re.sub(prefix, '', os.path.dirname(os.path.relpath(path)))
with codecs.open(path, 'r', 'utf-8') as f:
try:
contents = f.read()
@@ -40,4 +42,4 @@ class SourceScanner(object):
contents = ''
print('Failed reading file: %s, skipping content.' % path)
pass
return parser.Parse(contents)
return parser.Parse(scope, contents)