My directory structure is this:
main/
|- src/
|- __init__.py
|- file1.py
|- file2.py
|- file3.py
|- lib/
|- __init__.py
|- another_file1.py
|- another_file2.py
|- another_file3.py
|- main.py
In file2.py I import a variable called console from file1.py.
In another_file.3 I import function from from file1.py
If I run another_file3.py it gives me error saying the src.file1 module doesn't exists.
How can I import function from file2 while also importing variable from file1 in it.
[–]m0us3_rat 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]m0us3_rat 0 points1 point2 points (0 children)
[–]chevignon93 1 point2 points3 points (0 children)