diff options
author | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-10-11 23:21:51 +0000 |
---|---|---|
committer | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-10-11 23:21:51 +0000 |
commit | 9d8f6e4b23f084aee9fa47bbbfa25ec4cf599c8b (patch) | |
tree | 81afd88632dd8b60d2fbc37f2cfafb6722161d88 /tools/asn2wrs.py | |
parent | 45e3dd8ec13514731fc839c34f0ee6328f9d0589 (diff) |
Remove path at two more places from the output
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23155 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'tools/asn2wrs.py')
-rwxr-xr-x | tools/asn2wrs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/asn2wrs.py b/tools/asn2wrs.py index 6beb8638dd..688436a483 100755 --- a/tools/asn2wrs.py +++ b/tools/asn2wrs.py @@ -2739,7 +2739,7 @@ class EthOut: out = '' out += self.outcomment('Do not modify this file.', comment) out += self.outcomment('It is created automatically by the ASN.1 to Wireshark dissector compiler', comment) - out += self.outcomment(fn, comment) + out += self.outcomment(os.path.basename(fn), comment) out += self.outcomment(' '.join(sys.argv), comment) out += '\n' # Make Windows path separator look like Unix path separator @@ -2776,7 +2776,7 @@ class EthOut: fin = file(in_nm, "r") fout = file(out_nm, "w") fout.write(self.fhdr(out_nm)) - fout.write('/* Input file: ' + in_nm +' */\n') + fout.write('/* Input file: ' + os.path.basename(in_nm) +' */\n') fout.write('\n') fout.write('#line %u "%s"\n' % (1, os.path.basename(in_nm))) |