diff options
author | Jörg Mayer <jmayer@loplof.de> | 2007-10-11 23:21:51 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2007-10-11 23:21:51 +0000 |
commit | 2e37539cd55ec1cd1f8888c40af0f91437b142b0 (patch) | |
tree | 81afd88632dd8b60d2fbc37f2cfafb6722161d88 | |
parent | 1fb716d4ff7210732c862547686074fbdbc49d56 (diff) |
Remove path at two more places from the output
svn path=/trunk/; revision=23155
-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))) |