delete_dirs Find and delete sub dirs recursively create executable pip install . pip install pyinstaller pyinstaller --onefile delete_dirs.py dist/delete_dirs