repo.or.cz
/
worddb.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
some project update
[worddb.git]
/
set_paths.py
blob
4a5fd0b4bf0f5e1bf2842bc8e0d08a9e034275e5
1
import
sys
,
path
,
os
2
def
set_paths
(
f
):
3
p
=
path
.
path
(
f
)
4
sys
.
path
.
append
(
str
(
p
.
parent
.
joinpath
(
"../Django"
).
abspath
()))
5
sys
.
path
.
append
(
str
(
p
.
parent
.
joinpath
(
"libs/"
).
abspath
()))
6
os
.
environ
[
"DJANGO_SETTINGS_MODULE"
] =
"worddb.settings"