diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-11-14 02:54:04 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-11-14 02:55:40 +0300 |
commit | d35d9e64527fb10ab6b545607f8ff7d043c44663 (patch) | |
tree | c16300d075f1c64777dff4144c4773bd7fc41a03 /doc | |
parent | 4e4ef13734768d994d196b8527b3c565cbe9b904 (diff) |
update dna exporter for API changes
also print html name.
Diffstat (limited to 'doc')
-rwxr-xr-x | doc/blender_file_format/BlendFileDnaExporter_25.py | 6 |
1 files changed, 3 insertions, 3 deletions
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() |