Skip to content
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

Add support for platform specific modules. #1692

Merged
merged 3 commits into from
Jan 11, 2022

Conversation

cwize1
Copy link
Contributor

@cwize1 cwize1 commented Jan 10, 2022

  1. Manually import all the mix-in modules, instead of
    dynamically importing everything. This will allow for
    platform if statements over the import statements
    of platform specific modules.

  2. Allow extensions to specify a single python file
    instead of only supporting importing an entire
    directory. An extension can use this to import a
    file that handles any custom import rules they have,
    such as using platform if statements.

  3. Improve sub-class not found exception message.

@squirrelsc
Copy link
Member

It would be great, if it can be split to two commits. They can be in the same PR.

lisa/util/subclasses.py Outdated Show resolved Hide resolved
Manually import all the mix-in modules, instead of
dynamically importing everything. This will allow for
platform if statements over the import statements
of platform specific modules.
Allow extensions to specify a single python file
instead of only supporting importing an entire
directory. An extension can use this to import a
file that handles any custom import rules they have,
such as using platform if statements.
@cwize1
Copy link
Contributor Author

cwize1 commented Jan 10, 2022

It would be great, if it can be split to two commits. They can be in the same PR.

Done.

@squirrelsc squirrelsc merged commit 62f6a96 into microsoft:main Jan 11, 2022
@cwize1 cwize1 deleted the user/chrisgun/Platform branch March 4, 2022 18:26
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.

None yet

2 participants