ModuleNotFoundError: No module named 'scripts.xsslint_config' on quality build in edx-platform

Are you seeing ModuleNotFoundError: No module named 'scripts.xsslint_config' on a quality build in edx-platform? See solution in response.

This can happen if you add a -e in requirements from a repo with a scripts directory for testing purposes on a PR. You’ll need to drop the -e to get quality to pass. This happened when working with edx-toggles. See edx-toggles/scripts at master · edx/edx-toggles · GitHub

Thanks to @regis for solving this.