how can i fix import error for git subtree

41 Views Asked by At

I'm currently researching subtree-related issues I added the B repository as a subtree to the A repository by creating a folder named B However, when importing modules from the subtree, I encounter import errors

The B repository has the following folder structure: B>C B>D

In a specific module in the C folder, I am trying to import a function called d from the init file in the D folder The code in the B repository uses the import statement "from D import d" However, when I try to import this in the A repository, I get an import error

It seems to be a simple problem, but I'm unable to solve it

I'm looking for a solution to include only specific folders in the top-level import statements, but I haven't found it yet I don't think testing it later will be a suitable solution

0

There are 0 best solutions below