moved code to "src" directory
This commit is contained in:
parent
7b9a0d327e
commit
fc4ff978cc
3 changed files with 4 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
Loading…
Reference in a new issue