summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/django/6.x/pythonpath.patch
blob: c44f9c9b5141ce1aa5f1770435c84f6226f62486 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py
index 0c27194568..37ee505c21 100644
--- a/tests/admin_scripts/tests.py
+++ b/tests/admin_scripts/tests.py
@@ -132,6 +132,7 @@ class AdminScriptTestCase(SimpleTestCase):
             del test_environ["DJANGO_SETTINGS_MODULE"]
         python_path = [base_dir, django_dir, tests_dir]
         python_path.extend(ext_backend_base_dirs)
+        python_path.extend(sys.path)
         test_environ["PYTHONPATH"] = os.pathsep.join(python_path)
         test_environ["PYTHONWARNINGS"] = ""