Revision: 24428 http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24428 Author: campbellbarton Date: 2009-11-09 21:03:59 +0100 (Mon, 09 Nov 2009)
Log Message: ----------- fix for running datatoc on files in a subdir (was adding slashes into the C variable name) Modified Paths: -------------- trunk/blender/release/datafiles/datatoc.py Modified: trunk/blender/release/datafiles/datatoc.py =================================================================== --- trunk/blender/release/datafiles/datatoc.py 2009-11-09 19:20:48 UTC (rev 24427) +++ trunk/blender/release/datafiles/datatoc.py 2009-11-09 20:03:59 UTC (rev 24428) @@ -48,6 +48,7 @@ cname = filename + ".c" sys.stdout.write("Making C file <%s>\n" % cname) +filename = filename.split("/")[-1].split("\\")[-1] filename = filename.replace(".", "_") sys.stdout.write(str(size)) sys.stdout.write("\n") _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org http://lists.blender.org/mailman/listinfo/bf-blender-cvs