Re: [PATCH v2 07/13] vt: introduce gen_ucs_recompose_table.py to create ucs_recompose_table.h

From: Jiri Slaby
Date: Thu Apr 17 2025 - 00:09:52 EST


On 16. 04. 25, 15:17, Nicolas Pitre wrote:
On Wed, 16 Apr 2025, Jiri Slaby wrote:

On 15. 04. 25, 21:17, Nicolas Pitre wrote:
+/*
+ * {out_file} - Unicode character recomposition
+ *
+ * Auto-generated by {this_file}{generation_mode}
+ *
+ * Unicode Version: {unicodedata.unidata_version}
+ *
+{textwrap.fill(
+ f"This file contains a table with {table_description_detail}. " +
+ f"To generate a table with {alt_description_detail} instead, run:",
+ width=75, initial_indent=" * ", subsequent_indent=" * ")}
+ *
+ * python {this_file}{alternative_mode}

This should be python3. Or no 'python' at all -- I assume the script is
executable given "new file mode 100755".

On my system, python == python3 since many years. I think it is safe.

On many systems (incl. _all_ SUSE's):
$ python
bash: python: command not found

The convention is to call python3 if you want py3 (the same as you do in the script's shebang).

--
js
suse labs