From fc4ff978cccd0ef4bde6050c7ec0973ffbf7ede0 Mon Sep 17 00:00:00 2001 From: lars Date: Sun, 25 Apr 2010 21:51:23 +0000 Subject: [PATCH] moved code to "src" directory --- wortschlucker/README | 2 +- wortschlucker/{ => src}/forms.py | 0 wortschlucker/{ => src}/wortschlucker.py | 5 +++-- 3 files changed, 4 insertions(+), 3 deletions(-) rename wortschlucker/{ => src}/forms.py (100%) rename wortschlucker/{ => src}/wortschlucker.py (98%) diff --git a/wortschlucker/README b/wortschlucker/README index ffbc1f0..0668ad0 100644 --- a/wortschlucker/README +++ b/wortschlucker/README @@ -2,4 +2,4 @@ Requirements: apt-get install python-bobo python-genshi python-sqlobject python2.6 python-pkg-resources python-creoleparser Start the server: - bobo2.6 -f wortschlucker.py + bobo2.6 -f src/wortschlucker.py diff --git a/wortschlucker/forms.py b/wortschlucker/src/forms.py similarity index 100% rename from wortschlucker/forms.py rename to wortschlucker/src/forms.py diff --git a/wortschlucker/wortschlucker.py b/wortschlucker/src/wortschlucker.py similarity index 98% rename from wortschlucker/wortschlucker.py rename to wortschlucker/src/wortschlucker.py index 0f4f232..c2f0236 100755 --- a/wortschlucker/wortschlucker.py +++ b/wortschlucker/src/wortschlucker.py @@ -1,10 +1,11 @@ #!/usr/bin/env python2.6 import os -BASE_DIR = os.path.dirname(os.path.abspath(__file__)) +# the basedir is the parent dir of the location of this script +BASE_DIR = os.path.dirname(os.path.abspath(os.path.join(__file__, os.path.pardir))) # add the project directory to the python search path import sys -sys.path.insert(0, BASE_DIR) +sys.path.insert(0, os.path.join(BASE_DIR, "src")) import forms import sqlobject