Merge branch 'python-3-support' of https://github.com/ilkka/qwandry into ilkka-python-3-support

This commit is contained in:
Adam Sanderson 2010-12-29 09:03:04 -07:00
commit a3fa222205
1 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@ module Qwandry
end end
# add python repositories: # add python repositories:
python_paths = `python -c 'import sys;print \"\\n\".join(sys.path)'` rescue '' python_paths = `python -c 'import sys;print(\"\\n\".join(sys.path))'` rescue ''
python_paths.split("\n").reject{|path| path == '' || path == '.' || path =~ /\.zip$/ || path =~/lib-dynload$/}.each do |path| python_paths.split("\n").reject{|path| path == '' || path == '.' || path =~ /\.zip$/ || path =~/lib-dynload$/}.each do |path|
add :python, path, :class=>Qwandry::LibraryRepository, :reject => /\.(py[oc])|(egg-info)$/ add :python, path, :class=>Qwandry::LibraryRepository, :reject => /\.(py[oc])|(egg-info)$/
end end