Force django to run using the python from the virtualenv

This commit is contained in:
Calen Pennington
2012-11-07 10:54:35 -05:00
parent 3dc23eb131
commit 899132a9bb

View File

@@ -35,7 +35,7 @@ end
def django_admin(system, env, command, *args)
django_admin = ENV['DJANGO_ADMIN_PATH'] || select_executable('django-admin.py', 'django-admin')
return "#{django_admin} #{command} --settings=#{system}.envs.#{env} --pythonpath=. #{args.join(' ')}"
return "python `which #{django_admin}` #{command} --settings=#{system}.envs.#{env} --pythonpath=. #{args.join(' ')}"
end
task :default => [:test, :pep8, :pylint]