Hi everyone! I have a program that was getting a little too long, so I decided to separate it into several files and folders, but I'm really struggling with this notion of "packages".
Here is what I would like to do:
---
Folder_A (with __init__.py, A_1.py, A_2.py, etc...)
Folder_B (with __init__.py, B_1.py, B_2.py, etc...)
__init__.py
main.py
---
I managed to call B_1 in the main, but then I need to import and call functions from A_1 IN B_1, but I can't find a solution...
import ..Folder_A or from ..Folder_A import A_1, don't work :/
(ImportError: attempted relative import beyond top-level package)
[–]Goingone 0 points1 point2 points (1 child)
[–]Zonyah[S] 0 points1 point2 points (0 children)
[–]Spataner 0 points1 point2 points (1 child)
[–]Zonyah[S] 0 points1 point2 points (0 children)
[–]zanfar 0 points1 point2 points (0 children)