From: Jack Jansen Date: Tue, 27 Feb 2001 11:04:20 +0000 (+0000) Subject: Use the filename, not the pathname, in the definitions file X-Git-Tag: v2.1b1~183 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d67566b0f09d0d3064dbadc40f6cf9634b608a6c;p=python Use the filename, not the pathname, in the definitions file comment. This way the generated files are identical when generated on different machines. --- diff --git a/Tools/bgen/bgen/scantools.py b/Tools/bgen/bgen/scantools.py index 4dce73c8e8..0a3dd55354 100644 --- a/Tools/bgen/bgen/scantools.py +++ b/Tools/bgen/bgen/scantools.py @@ -392,7 +392,7 @@ if missing: raise "Missing Types" self.report("(No symbol definitions will be written)") else: self.report("defsfile = %s", `self.defsfile.name`) - self.defsfile.write("# Generated from %s\n\n" % `inputname`) + self.defsfile.write("# Generated from %s\n\n" % `os.path.split(inputname)[1]`) self.writeinitialdefs() self.alreadydone = [] try: