diff options
| author | Tom Christie | 2012-12-30 08:06:04 +0000 |
|---|---|---|
| committer | Tom Christie | 2012-12-30 08:06:11 +0000 |
| commit | 33580c82b3487bdf00cbbaef409a4dd41e6750d5 (patch) | |
| tree | 2eb8638492efd56d4b991272ca3c1f7568308c13 /rest_framework/runtests/runtests.py | |
| parent | af5c3c3bf4645fa9cb1d7c4d17c0f3a530040df8 (diff) | |
| download | django-rest-framework-33580c82b3487bdf00cbbaef409a4dd41e6750d5.tar.bz2 | |
Cleanup runtests/runcoverage
Diffstat (limited to 'rest_framework/runtests/runtests.py')
| -rwxr-xr-x | rest_framework/runtests/runtests.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/rest_framework/runtests/runtests.py b/rest_framework/runtests/runtests.py index 729ef26a..505994e2 100755 --- a/rest_framework/runtests/runtests.py +++ b/rest_framework/runtests/runtests.py @@ -5,11 +5,9 @@ # 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__), "../..")) + +# fix sys path so we don't need to setup PYTHONPATH +sys.path.append(os.path.join(os.path.dirname(__file__), "../..")) os.environ['DJANGO_SETTINGS_MODULE'] = 'rest_framework.runtests.settings' from django.conf import settings |
