summaryrefslogtreecommitdiff
path: root/tools/asn2wrs.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/asn2wrs.py')
-rwxr-xr-xtools/asn2wrs.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/asn2wrs.py b/tools/asn2wrs.py
index aab828ba5b..d89ca9ddf8 100755
--- a/tools/asn2wrs.py
+++ b/tools/asn2wrs.py
@@ -2917,10 +2917,10 @@ class EthOut:
out = out.replace('\\', '/')
# Change abolute paths from cmake builds to relative paths as used
# in autotools for identical output of both build systems.
- out = re.sub(r'(/ [^ ]*/tools/)', '../../tools/', out)
- out = re.sub(r'(/ [^ ]*/epan/)', '../../epan/', out)
- out = re.sub(r'(/ [^ ]*/asn1/[^\s/]*)', '.', out)
- out = re.sub(r'(/ [^ ]*/asn1/[^\s]/)', './', out)
+ out = re.sub(r'( [^ ]*/tools/)', ' ../../tools/', out)
+ out = re.sub(r'( [^ ]*/epan/)', ' ../../epan/', out)
+ out = re.sub(r'( [^ ]*/asn1/[^\s/]*)', ' .', out)
+ out = re.sub(r'( [^ ]*/asn1/[^\s]/)', ' ./', out)
return out
#--- dbg_print -------------------------------------------------------