diff options
| author | Tim D. Smith | 2014-11-02 10:33:24 -0800 |
|---|---|---|
| committer | Tim D. Smith | 2014-11-02 10:33:34 -0800 |
| commit | daabf4f5dc3effbaa1efe7275615f6541b65906c (patch) | |
| tree | c0a5bb0910dbe175a608f4185d2116bfc5b422b4 /Library/Homebrew | |
| parent | b584689afa5683592371458f7d9383d0fea4e8e1 (diff) | |
| download | brew-daabf4f5dc3effbaa1efe7275615f6541b65906c.tar.bz2 | |
keg: add python_pth_files_installed? helper
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/keg.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index c657074c8..47c55e9da 100644 --- a/Library/Homebrew/keg.rb +++ b/Library/Homebrew/keg.rb @@ -230,6 +230,10 @@ class Keg path.join("lib", "python2.7", "site-packages").directory? end + def python_pth_files_installed? + Dir["#{path}/lib/python2.7/site-packages/*.pth"].any? + end + def app_installed? Dir["#{path}/{,libexec/}*.app"].any? end |
