@@ -65,8 +65,8 @@ class OffsetType(enum.IntEnum):
65
65
66
66
If this is edited, you must ensure that `emit_module` reflects your changes."""
67
67
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)"""
70
70
71
71
Codepoint = int
72
72
BitPos = int
@@ -645,7 +645,7 @@ def emit_module(
645
645
module .write ("}\n " )
646
646
647
647
648
- def main (module_filename : str ):
648
+ def main (module_path : str ):
649
649
"""Obtain character data from the latest version of Unicode, transform it into a multi-level
650
650
lookup table for character width, and write a Rust module utilizing that table to
651
651
`module_filename`.
@@ -703,9 +703,9 @@ def main(module_filename: str):
703
703
print ("------------------------" )
704
704
print (f" Total size: { total_size } bytes" )
705
705
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 } "' )
708
708
709
709
710
710
if __name__ == "__main__" :
711
- main (MODULE_FILENAME )
711
+ main (MODULE_PATH )
0 commit comments