fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
742c719
)
Added setting PYTHONPATH to manage.py.
author
Marek Stępniowski
<marek@stepniowski.com>
Wed, 1 Oct 2008 11:05:49 +0000
(13:05 +0200)
committer
Marek Stępniowski
<marek@stepniowski.com>
Wed, 1 Oct 2008 11:05:49 +0000
(13:05 +0200)
wolnelektury/manage.py
patch
|
blob
|
history
diff --git
a/wolnelektury/manage.py
b/wolnelektury/manage.py
index
5e78ea9
..
a26ce5c
100755
(executable)
--- a/
wolnelektury/manage.py
+++ b/
wolnelektury/manage.py
@@
-1,4
+1,12
@@
#!/usr/bin/env python
+from os.path import abspath, dirname, join
+from site import addsitedir
+import sys
+path = addsitedir(abspath(join(dirname(__file__), '../external_libs')), set())
+if path: sys.path = list(path) + sys.path
+sys.path.insert(0, abspath(join(dirname(__file__), '../apps')))
+sys.path.insert(0, abspath(join(dirname(__file__), '../lib')))
+
from django.core.management import execute_manager
try:
import settings # Assumed to be in the same directory.