Basic support for python
This commit is contained in:
parent
d9c1c94296
commit
9cefce255d
|
@ -101,6 +101,14 @@ module Qwandry
|
||||||
add :perl, path, :class=>Qwandry::LibraryRepository
|
add :perl, path, :class=>Qwandry::LibraryRepository
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# add python repositories:
|
||||||
|
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|
|
||||||
|
add :python, path, :class=>Qwandry::LibraryRepository, :reject => /\.(py[oc])|(egg-info)$/
|
||||||
|
end
|
||||||
|
|
||||||
|
# Qwandry is a ruby app after all, so activate ruby and rubygems by default. Other defaults can be set
|
||||||
|
# with a custom init.rb
|
||||||
activate :ruby, :gem
|
activate :ruby, :gem
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue