Use literal "python"

This commit is contained in:
Peter Teixeira 2020-03-04 10:13:32 -05:00
parent 46a56d0462
commit 7ccec0cdf0

View File

@ -227,7 +227,7 @@ module Language
Pathname.glob(@venv_root/"lib/python*/orig-prefix.txt").each do |prefix_file| Pathname.glob(@venv_root/"lib/python*/orig-prefix.txt").each do |prefix_file|
prefix_path = prefix_file.read prefix_path = prefix_file.read
prefix_path.sub! %r{^#{HOMEBREW_CELLAR}/#{python}/[^/]+}, Formula["python"].opt_prefix prefix_path.sub! %r{^#{HOMEBREW_CELLAR}/python/[^/]+}, Formula["python"].opt_prefix
prefix_file.atomic_write prefix_path prefix_file.atomic_write prefix_path
end end
end end