moved code to "src" directory

This commit is contained in:
lars 2010-04-25 21:51:23 +00:00
parent 7b9a0d327e
commit fc4ff978cc
3 changed files with 4 additions and 3 deletions

View file

@ -2,4 +2,4 @@ Requirements:
apt-get install python-bobo python-genshi python-sqlobject python2.6 python-pkg-resources python-creoleparser apt-get install python-bobo python-genshi python-sqlobject python2.6 python-pkg-resources python-creoleparser
Start the server: Start the server:
bobo2.6 -f wortschlucker.py bobo2.6 -f src/wortschlucker.py

View file

@ -1,10 +1,11 @@
#!/usr/bin/env python2.6 #!/usr/bin/env python2.6
import os 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 # add the project directory to the python search path
import sys import sys
sys.path.insert(0, BASE_DIR) sys.path.insert(0, os.path.join(BASE_DIR, "src"))
import forms import forms
import sqlobject import sqlobject