Skip to content

Fix for new internal module loader#84

Merged
da-h merged 2 commits intomasterfrom
fix_for_new_internal_module_loader
Nov 10, 2021
Merged

Fix for new internal module loader#84
da-h merged 2 commits intomasterfrom
fix_for_new_internal_module_loader

Conversation

@da-h
Copy link
Copy Markdown
Owner

@da-h da-h commented Nov 10, 2021

Bugfix for new #83 module import

This MR solves a bug introduced in #83, where a module repository could not have a different id from its directory name.

Description

MR #83 changed the way modules are loaded into sys.modules (see MR for more details).
However, the change introduced a bug when defining module directories using dict-notation in mf.init.
When defining a module-repository where the specified id differs from the actual folder it is imported from.

Things done in this MR

  • Fixed the bug
  • Added a test case for this scenario

Check all before creating this PR:

  • unit tests adapted / created

@da-h da-h requested a review from sbrodehl November 10, 2021 16:24
@da-h da-h merged commit e60ccf6 into master Nov 10, 2021
@da-h da-h deleted the fix_for_new_internal_module_loader branch November 11, 2021 17:09
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