Skip to content
Snippets Groups Projects
Commit 9c8adb4a authored by Mike McQuaid's avatar Mike McQuaid
Browse files

keg: delete __pycache__ directory.

parent bbbd6d86
No related branches found
No related tags found
No related merge requests found
......@@ -523,7 +523,7 @@ class Keg
def delete_pyc_files!
find { |pn| pn.delete if %w[.pyc .pyo].include?(pn.extname) }
find { |pn| pn.delete if pn.basename.to_s == "__pycache__" }
find { |pn| FileUtils.rm_rf pn if pn.basename.to_s == "__pycache__" }
end
private
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment