Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A Sublime Text 2 Django project file with a test runner build system
{
"folders":
[
{
"path": "django_project_dir"
},
{
"path": "lib/python2.7"
}
],
"build_systems":
[
{
"name": "Run Tests",
"working_dir": "${project_path}/django_project_dir",
"env": {"PYTHONPATH": "/path/to/envs/env_name/django_project_dir:/path/to/envs/env_name/lib/python2.7/site-packages"},
"cmd": ["python", "manage.py", "test", "--noinput"]
}
]
}
@luuksommers

This comment has been minimized.

Copy link

commented Jun 9, 2012

Thanks for this!

For windows you can add /C/ for your C:\ drive to the env e.g.:
"PYTHONPATH": "/C/path/to/envs/env_name/django_project_dir:/C/path/to/envs/env_name/lib/python2.7/site-packages"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.