Effect of using sys.path.insert(0, path) and sys.path(append) when loading modules
Because python checks in the directories in sequential order starting at the first directory in sys.path list, till it find the .py file it was looking for. Ideally, the current directory or the directory of the script is the first always the first element in the list, unless you modify it, like you did. From documentation – As initialized upon program … Read more