I understand that there are (at least) two ways I can do imports.
Assuming that FooMod is in a sibling directory to the directory I'm currently in and assuming that pathToFooMod is a relative path, not an absolute path:
sys.path.append(pathToFooMod)
import FooMod
or
import ../FooMod
Both will work (for some circumstances). Given the situation that either solution would work (with or without modifications), what's the reason to use one or the other?
The second is technically a bit cleaner, but not by much and package imports aren't really a commonly-inspected area of the code anyway.
Both will fail if FooMod gets moved, so there's no maintenance/stability difference that I see.
I found plenty of questions asking how to do one or the other, or how to switch from one to other, but not why. Is the only reason to use one over the other in situations where one method simply doesn't work?
Thanks in advance.