Skip to content

Trickified code isn't placed into the right Python module #2101

@ninotarantino

Description

@ninotarantino

I'm building a Trickified library and I have several headers that place code into a Python module, like so:

/* PURPOSE: (Demo)
 *
 * PYTHON_MODULE: (demo)
 * /

However, when I build a sim that pulls in that Trickified library, the code doesn't seem to be placed in that Python module. The import statements for the relevant modules are missing from the build/trick/demo/__init__.py file. I do actually see the import statements in my Trickified build/demo/__init__.py file that gets generated during Trickification, though.

Here's a minimum reproducible example: trickification-issue.zip

Tagging @ddj116 and @excaliburtb for awareness. I think I have a fix, so I'll open a PR in a bit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions