node_list_filename = 'node_list'
node_list = open (node_list_filename, 'w')
for texi_file in texi_files:
- process_texi (texi_file, intro_blurb, node_blurb, make_skeleton, texi_file, node_list)
+ process_texi (texi_file, intro_blurb, node_blurb, make_skeleton, os.path.basename (texi_file), node_list)
for word in ('Up:', 'Next:', 'Previous:', 'Appendix ', 'Footnotes', 'Table of Contents'):
node_list.write ('_(r"' + word + '")\n')
node_list.close ()
os.system ('xgettext -c -L Python --no-location -o ' + output_file + ' ' + node_list_filename)
else:
for texi_file in texi_files:
- process_texi (texi_file, intro_blurb, node_blurb, make_skeleton, texi_file)
+ process_texi (texi_file, intro_blurb, node_blurb, make_skeleton, os.path.basename (texi_file))