mirror of
https://github.com/django/django.git
synced 2025-07-23 05:05:17 +00:00
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.
This commit is contained in:
parent
28e545c4b3
commit
0dc7ff6b7a
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ CONTRIB_DIR_NAME = 'django.contrib'
|
||||||
|
|
||||||
TEST_TEMPLATE_DIR = 'templates'
|
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__))
|
CONTRIB_DIR = os.path.dirname(upath(contrib.__file__))
|
||||||
TEMP_DIR = tempfile.mkdtemp(prefix='django_')
|
TEMP_DIR = tempfile.mkdtemp(prefix='django_')
|
||||||
os.environ['DJANGO_TEST_TEMP_DIR'] = TEMP_DIR
|
os.environ['DJANGO_TEST_TEMP_DIR'] = TEMP_DIR
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue