aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorTim D. Smith2014-11-02 10:33:24 -0800
committerTim D. Smith2014-11-02 10:33:34 -0800
commitdaabf4f5dc3effbaa1efe7275615f6541b65906c (patch)
treec0a5bb0910dbe175a608f4185d2116bfc5b422b4 /Library
parentb584689afa5683592371458f7d9383d0fea4e8e1 (diff)
downloadbrew-daabf4f5dc3effbaa1efe7275615f6541b65906c.tar.bz2
keg: add python_pth_files_installed? helper
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/keg.rb4
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