Hello everybody,
I am trying to make and call my own package but something is not working. This is how my code is structured:
As i read online i need to add an __init__.py file to each file i want to be in the package.
In folder2, i am calling the package in the following way:
Thanks
I am trying to make and call my own package but something is not working. This is how my code is structured:
- Main Folder1
- Main Folder2
- Folder1
- SubFolder (this is what i want to export as package)
- SubSubFolder1 (contains __ini__.py)
- SubSubFolder2 (contains __ini__.py)
- SubSubFolder3 (contains __ini__.py)
- SubSubFolder1 (contains __ini__.py)
- __init__.py
- SubFolder (this is what i want to export as package)
- Folder2 (i need to use my package here)
- Folder1
As i read online i need to add an __init__.py file to each file i want to be in the package.
In folder2, i am calling the package in the following way:
from subFolder.SubSubFolder1 import file.pyHowever it says:
Error:Module not found error:No module named 'subFolder'
Thanks