From d35d9e64527fb10ab6b545607f8ff7d043c44663 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 14 Nov 2014 00:54:04 +0100 Subject: update dna exporter for API changes also print html name. --- doc/blender_file_format/BlendFileDnaExporter_25.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/blender_file_format/BlendFileDnaExporter_25.py b/doc/blender_file_format/BlendFileDnaExporter_25.py index 837b67c6eed..64c92c7cf80 100755 --- a/doc/blender_file_format/BlendFileDnaExporter_25.py +++ b/doc/blender_file_format/BlendFileDnaExporter_25.py @@ -112,7 +112,7 @@ class DNACatalogHTML: # ${version} and ${revision} if bpy: version = '.'.join(map(str, bpy.app.version)) - revision = bpy.app.build_revision[:-1] + revision = bpy.app.build_hash else: version = str(header.Version) revision = 'Unknown' @@ -404,7 +404,7 @@ def main(): # Files if '--dna-versioned' in sys.argv: blender_version = '_'.join(map(str, bpy.app.version)) - filename = 'dna-{0}-{1}_endian-{2}-r{3}'.format(sys.arch, sys.byteorder, blender_version, bpy.app.build_revision[2:-1]) + filename = 'dna-{0}-{1}_endian-{2}-{3}'.format(sys.arch, sys.byteorder, blender_version, bpy.app.build_hash) else: filename = 'dna' dir = os.path.dirname(__file__) @@ -451,7 +451,7 @@ def main(): os.remove(Path_Blend) # export dna to xhtml - log.info("6: export sdna to xhtml file") + log.info("6: export sdna to xhtml file: %r" % Path_HTML) handleHTML = open(Path_HTML, "w") catalog.WriteToHTML(handleHTML) handleHTML.close() -- cgit v1.2.3