From ceb75d6f58ab16e3afdf3c7b00de539012d790d5 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Tue, 5 May 2009 23:12:03 +0800 Subject: [PATCH] Make the lib imports work on other computers than Simon's Signed-off-by: Simon Willison --- djangopeoplenet/manage.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/djangopeoplenet/manage.py b/djangopeoplenet/manage.py index 6ad5560..3d7de22 100644 --- a/djangopeoplenet/manage.py +++ b/djangopeoplenet/manage.py @@ -1,9 +1,10 @@ #!/usr/bin/env python -import sys + +import sys, os +root = os.path.dirname(__file__) paths = ( - '/home/simon/sites/djangopeople.net', - '/home/simon/sites/djangopeople.net/djangopeoplenet', - '/home/simon/sites/djangopeople.net/djangopeoplenet/djangopeople/lib', + os.path.join(root), + os.path.join(root, "djangopeople", "lib"), ) for path in paths: if not path in sys.path: