Merge branch 'python-3-support' of https://github.com/ilkka/qwandry into ilkka-python-3-support
This commit is contained in:
commit
a3fa222205
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue