Skip to content

How to use preprocess_file in compiler.py #205

Closed Answered by amykyta3
zhajio1988 asked this question in Q&A
Discussion options

You must be logged in to vote

The RDLCompiler.preprocess_file() method returns a FileInfo object which contains information about the preprocessed source code.
See the API reference here: https://systemrdl-compiler.readthedocs.io/en/stable/api/compiler.html#systemrdl.compiler.FileInfo

From that object, you can extract the preprocessed text via: FileInfo.preprocessed_text

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by amykyta3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants