xnn.ffnn.common.frc.write_frc#
- xnn.ffnn.common.frc.write_frc(frc, path)[source]#
Write a
FrcFileto disk in.frcsyntax.Sections are written with aligned columns and a header comment naming them; JSON sections are pretty-printed;
#defineand#referenceblocks are reproduced. The output re-reads withread_frc().- Parameters:
frc (FrcFile) – The file object (built by hand with
FrcFile.empty()or read).path (str or Path) – Destination.
- Returns:
The written path.
- Return type:
Path