webfaction and repo.or.cz deployment done
[worddb.git] / dicts / set_paths.py
blob34a30c70f1eec35eb1000d5b21107a9bdb2b549b
1 import sys, path, os
3 def set_paths(f):
4 p = path.path(f)
5 sys.path.append(str(p.parent.joinpath("../..").abspath()))
6 sys.path.append(str(p.parent.joinpath("../../Django").abspath()))
7 sys.path.append(str(p.parent.joinpath("../libs/").abspath()))
8 os.environ["DJANGO_SETTINGS_MODULE"] = "worddb.settings"
10 set_paths(__file__)