Permalink
Browse files

Ensured that we have an absolute path to RUNTESTS_DIR.

This is needed to make 'python runtests.py' work, otherwise only
'python ./runtests.py' would work.
  • Loading branch information...
1 parent 28e545c commit 0dc7ff6b7abc72d9909d93cd05e33f377ba6806c @apollo13 apollo13 committed Feb 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/runtests.py
View
@@ -13,7 +13,7 @@
TEST_TEMPLATE_DIR = 'templates'
-RUNTESTS_DIR = os.path.dirname(upath(__file__))
+RUNTESTS_DIR = os.path.abspath(os.path.dirname(upath(__file__)))
CONTRIB_DIR = os.path.dirname(upath(contrib.__file__))
TEMP_DIR = tempfile.mkdtemp(prefix='django_')
os.environ['DJANGO_TEST_TEMP_DIR'] = TEMP_DIR

0 comments on commit 0dc7ff6

Please sign in to comment.