/ Published in: Python
URL: http://codespatter.com/2009/04/10/how-to-add-locations-to-python-path-for-reusable-django-apps/
Expand |
Embed | Plain Text
import os import sys PROJECT_ROOT = os.path.dirname(__file__) sys.path.insert(0, os.path.join(PROJECT_ROOT, "apps"))
You need to login to post a comment.
