Have a file test.py
, located on?a Directory for eg /pyproject
. and in /pyproject
have a subdirectory called api
which have two subdirectorys called gmail
and facebook
and in both directory have .py
file such as :
/pyproject/api/gmail/abc.py
/pyproject/api/facebook/xyz.py
Have import?abc and xyz py file ?from?test.py:
import api.gmail.abc
Which resulted:
File "./test.py", line 3, in <module>
import api.gmail.abc
ImportError: No module named api.gmail.abc
is There any ideas how to import?xyz/abc?from subdirectory to main test.py
file?