@@ -65,8 +65,8 @@ class OffsetType(enum.IntEnum):
6565
6666If this is edited, you must ensure that `emit_module` reflects your changes."""
6767
68- MODULE_FILENAME = "tables.rs"
69- """The filename of the emitted Rust module (will be created in the working directory)"""
68+ MODULE_PATH = "../src/ tables.rs"
69+ """The path of the emitted Rust module (relative to the working directory)"""
7070
7171Codepoint = int
7272BitPos = int
@@ -645,7 +645,7 @@ def emit_module(
645645 module .write ("}\n " )
646646
647647
648- def main (module_filename : str ):
648+ def main (module_path : str ):
649649 """Obtain character data from the latest version of Unicode, transform it into a multi-level
650650 lookup table for character width, and write a Rust module utilizing that table to
651651 `module_filename`.
@@ -703,9 +703,9 @@ def main(module_filename: str):
703703 print ("------------------------" )
704704 print (f" Total size: { total_size } bytes" )
705705
706- emit_module (module_filename , version , tables , variation_table )
707- print (f'Wrote to "{ module_filename } "' )
706+ emit_module (module_path , version , tables , variation_table )
707+ print (f'Wrote to "{ module_path } "' )
708708
709709
710710if __name__ == "__main__" :
711- main (MODULE_FILENAME )
711+ main (MODULE_PATH )
0 commit comments