最佳答案
I was recently having a problem with a python ImportError, where the module was found when running on my local computer but not found on the CI server. I solved this problem by swapping sys.path.append(path)
in my script with sys.path.insert(0, path)
where path
is the string module location.
Since this is my module and not an installed package (related question), why does the order of paths fix this problem?