Use a custom syntax for this. Something like this: # >>> include >>> path/to/something.py The path would follow the same relative location rules as the standard .fea include statement. When including a file, the include line would be replaced with the contents of the .py file, with each line in the .py text prefixed with # , all text preceded with # >>> and all text followed by # <<<. This will allow Python code to be more easily editable in a code editor.
Use a custom syntax for this. Something like this:
# >>> include >>> path/to/something.pyThe path would follow the same relative location rules as the standard .feaincludestatement. When including a file, the include line would be replaced with the contents of the .py file, with each line in the .py text prefixed with#, all text preceded with# >>>and all text followed by# <<<. This will allow Python code to be more easily editable in a code editor.