nangtani / blender-addon-tester

The blender addon tester is a test harness to enable pytest hook to allow addons to be tested inside a defined version of blender.
MIT License
64 stars 13 forks source link

Check __pycache__ existence on every subdirectory. #34

Closed FrankFirsching closed 3 years ago

FrankFirsching commented 3 years ago

The logic to delete __pycache__ directories only checked their existence on the top level tempdir. If pycache also existed inside a subdirectory (which could happen through interactive debugging sessions through Jaques Lucke's Visual Studio Code addon), running the tests tried to clean up the .pyc file from within __pycache_\, Instead of removing the subdirs before zipping, this patch just skips over them while iterating the directory structure.