Code

Ticket #16342: set_the_pythonpath.patch

File set_the_pythonpath.patch, 484 bytes (added by soren, 3 years ago)

Patch to always prepend the top level srcdir to sys.path.

  • tests/runtests.py

     
    11#!/usr/bin/env python 
    22import os, subprocess, sys 
    33 
     4# This needs to happen before we import anything from django. 
     5parent_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) 
     6sys.path.insert(0, parent_dir) 
     7 
    48import django.contrib as contrib 
    59from django.utils import unittest 
    610