Created
August 9, 2010 20:12
-
-
Save ewheeler/516020 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# vim: ai ts=4 sts=4 et sw=4 | |
import sys, os | |
from django.core.management import execute_manager | |
import settings | |
if __name__ == "__main__": | |
project_root = os.path.abspath( | |
os.path.dirname(__file__)) | |
for dir in ["apps"]: | |
path = os.path.join(project_root, dir) | |
sys.path.insert(0, path) | |
sys.path.insert(0, project_root) | |
execute_manager(settings) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment