Skip to content

[Dexter] Set up ComInterface module to be imported correctly #111850

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 10, 2024

Conversation

SLTozer
Copy link
Contributor

@SLTozer SLTozer commented Oct 10, 2024

Fixes issue added by: #111833

Following the previous commit that changed how Dexter imports modules, the ComInterface module import became broken. This is because it had a different directory structure to other modules, where we want to import single file rather than a dir containing a init.py. For this case, an optional extra arg has been added to load_module allowing a filename to be specified, letting us import ComInterface.py directly and fixing the issue.

Fixes issue added by: llvm#111833

Following the previous commit that changed how Dexter imports modules, the
ComInterface module import became broken. This is because it had a different
directory structure to other modules, where we want to import single file
rather than a dir containing a __init__.py. For this case, an optional extra
arg has been added to load_module allowing a filename to be specified,
letting us import ComInterface.py directly and fixing the issue.
@SLTozer SLTozer self-assigned this Oct 10, 2024
Copy link
Member

@jmorse jmorse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SLTozer SLTozer merged commit 23309d7 into llvm:main Oct 10, 2024
6 checks passed
DanielCChen pushed a commit to DanielCChen/llvm-project that referenced this pull request Oct 16, 2024
…1850)

Fixes issue added by: llvm#111833

Following the previous commit that changed how Dexter imports modules,
the ComInterface module import became broken. This is because it had a
different directory structure to other modules, where we want to import
single file rather than a dir containing a __init__.py. For this case,
an optional extra arg has been added to load_module allowing a filename
to be specified, letting us import ComInterface.py directly and fixing
the issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants