keg: fix delete_pyc_files path typo.
This commit is contained in:
parent
8e928992f5
commit
948b1b8dbe
@ -519,7 +519,7 @@ class Keg
|
||||
|
||||
def delete_pyc_files!
|
||||
find do |path|
|
||||
if %w[.pyc .pyo].include?(pn.extname) || pn.basename.to_s == "__pycache__"
|
||||
if %w[.pyc .pyo].include?(path.extname) || path.basename.to_s == "__pycache__"
|
||||
path.delete
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user