After os.chdir() local modules cannot be imported when run under pudb and raise ModuleNotFoundError. When run under the normal python interpreter this works. The ...