VS Code Keeps Generating Pycache Files – Stack Overflow

I already added the following snippet to the top of my python codes to prevent pycache files from being generated. import sys sys.dont_write_bytecode = True Now, if I run the files (unit tests) individually, no pycache file is generated. However, as soon as I use the Testing feature of VS Code to run all unit tests one after another, it consistently generates a pycache folder. Thanks in …

https://stackoverflow.com/questions/71946178/vs-code-keeps-generating-pycache-files