Skip to content

Conversation

jwidauer
Copy link

This PR fixes #8543, by generating import statements when a foreign definition (a definition that was not defined in the file currently being parsed) is encountered.
As well as using the def->declaration_file, instead of the def->file, when available, to create the import statement. This is done, since the def->file filename will have an absolute path in certain cases, whereas the def->declaration_file does not.

Please let me know if there is anything you'd like me to change or if there's anything wrong with my logic.

@github-actions github-actions bot added c++ codegen Involving generating code from schema python labels Aug 18, 2025
@jwidauer jwidauer force-pushed the allow-includes-with-gen-onefile branch from 30fc450 to bccef4f Compare August 18, 2025 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ codegen Involving generating code from schema python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Python --gen-onefile option not respecting include directive
1 participant