server/sbin/sync/config_path.pth
author ymh <ymh.work@gmail.com>
Wed, 10 Jun 2015 16:13:27 +0200
changeset 162 247ef0b10de6
parent 118 fea47f1054e2
permissions -rw-r--r--
correct default setting for wsgi

import sys; sys.__plen = len(sys.path)
%(srv_config_path)s
import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new)