diff --git a/rakelib/i18n.rake b/rakelib/i18n.rake index e30c119e2e..71ed4dcbfb 100644 --- a/rakelib/i18n.rake +++ b/rakelib/i18n.rake @@ -67,7 +67,8 @@ namespace :i18n do desc "Run tests for the internationalization library" task :test => "i18n:validate:gettext" do test = File.join(REPO_ROOT, "i18n", "tests") - sh("nosetests #{test}") + pythonpath_prefix = "PYTHONPATH=#{REPO_ROOT}/i18n:$PYTHONPATH" + sh("#{pythonpath_prefix} nosetests #{test}") end end