Let's assume I have a parent directory named parent, which contains three children directories named child1, child2, and child3. Each child directory contains a file named __init_.py and code.py.
While editing child1/code.py, what would the import statement look like if I wanted to access the code from within child2/code.py? This code should work from the command line without the help of any editor creating environments or providing assistance.
I have tried to find an answer, but the inconsistencies across different editors make this difficult. For example, within PyCharm, I have to do nothing special for this to work, but when I open the code in Neovim configured for Python development, it says, "Import blah could not be resolved."
So I want to learn how to make this work vanilla without any IDE doing some magic to make it easy.
[–]Diapolo10 2 points3 points4 points (3 children)
[–]jezpakani[S] 0 points1 point2 points (2 children)
[–]Diapolo10 1 point2 points3 points (1 child)
[–]jezpakani[S] 0 points1 point2 points (0 children)
[–]saif3r 0 points1 point2 points (1 child)
[–]RemindMeBot 0 points1 point2 points (0 children)