Skip to content

Commit

Permalink
Ensured that we have an absolute path to RUNTESTS_DIR.
Browse files Browse the repository at this point in the history
This is needed to make 'python runtests.py' work, otherwise only
'python ./runtests.py' would work.
  • Loading branch information
apollo13 committed Feb 26, 2013
1 parent 28e545c commit 0dc7ff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0dc7ff6

Please sign in to comment.