aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/runtests/runtests.py
diff options
context:
space:
mode:
authorGeorge Kappel2012-12-11 09:14:52 -0600
committerGeorge Kappel2012-12-11 09:14:52 -0600
commit80f15c598afe138df4170ceb2198484889511d0c (patch)
tree5312f703bb9d2a6c05bbeb7db98dad911dcc639c /rest_framework/runtests/runtests.py
parent80adaecc4307ba802fcb7e45b2f178d2102a41e9 (diff)
downloaddjango-rest-framework-80f15c598afe138df4170ceb2198484889511d0c.tar.bz2
Added depth test
Diffstat (limited to 'rest_framework/runtests/runtests.py')
-rwxr-xr-xrest_framework/runtests/runtests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/rest_framework/runtests/runtests.py b/rest_framework/runtests/runtests.py
index 1bd0a5fc..729ef26a 100755
--- a/rest_framework/runtests/runtests.py
+++ b/rest_framework/runtests/runtests.py
@@ -5,6 +5,11 @@
# http://code.djangoproject.com/svn/django/trunk/tests/runtests.py
import os
import sys
+"""
+Need to fix sys path so following works without specifically messing with PYTHONPATH
+python ./rest_framework/runtests/runtests.py
+"""
+sys.path.append(os.path.join(os.path.dirname(__file__), "../.."))
os.environ['DJANGO_SETTINGS_MODULE'] = 'rest_framework.runtests.settings'
from django.conf import settings