Skip to content
Snippets Groups Projects
Commit 039d5528 authored by Stephen Street's avatar Stephen Street Committed by Daniel Agar
Browse files

Change prefix construction to allow correct building of scope tag in...

Change prefix construction to allow correct building of scope tag in parameters.xml when building out-of-tree (#4781)

Fixes issue #4767
parent 29eac9b7
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ 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
prefix = "^.*" + os.path.sep + "src" + os.path.sep
scope = re.sub(prefix.replace("\\", "/"), "", os.path.dirname(os.path.relpath(path)).replace("\\", "/"))
with codecs.open(path, 'r', 'utf-8') as f:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment