I am very new at Python. I have an existing example project that has the scripts YYY in path XXX/YYY, and a script A.py that call these one by one.
I only want to add a script ZZZ.py to the YYY scripts so that call after them.
I add this script in the same path (XXX/ZZZ.py) and try to import it in the A.py and call it.
But I got this error:
python import error no module named XXX/ZZZ.py
I wonder: What is the difference? Why can Python import XXX/YYY py files but return this error for ZZZ.py?