This commit is contained in:
j3d1 2026-08-01 23:10:08 +02:00
parent 4f2fe011c0
commit 6fcdd1eefa
4 changed files with 22 additions and 9 deletions

View file

@ -183,7 +183,11 @@ def testdata():
import django
django.setup()
if os.path.exists('testdata.py'):
testdata_path = os.environ.get('TOOLSHED_SETUP_PATH', 'testdata.py')
if os.path.exists(testdata_path):
if testdata_path != 'testdata.py':
import sys
sys.path.append(os.path.dirname(testdata_path))
from testdata import create_test_data
create_test_data()
else: