Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Hi, thanks for the answer. It solved the issue just like I wanted :-) Should I add that init.py file to every package in my project? Commented Aug 26, 2021 at 10:46
  • Thank you, I'm glad. Mark then as the solution to the problem) This file should be added to all directories where there is an internal import. That is, if in the directory d appears script4.py and in script3.py you want to import as import script4 then you should add the _init_.py file to the d directory Commented Aug 26, 2021 at 11:00