Skip to content

[BUG] Incorrect import path when using relative grafts #3

@amykyta3

Description

@amykyta3

If grafting using a relative import path, the import path gets resolved incorrectly.
Eg:

# Assume the following module structure:
mymod.mod.mod_ral
mymod.top_ral

When grafting mod_ral onto top_ral, one would expect to provide the import path as: .mod.mod_ral

However the runtime ends up resolving this as: mymod.top_ral.mod.mod_ral

TODO

  • Add unit tests to cover relative imports
  • Fix the issue
  • Also fix: ImportError text is missing a trailing quote for the source module name

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions