blob: 52c9ed83d90a934ae31ebcaf23872fdda9c62a64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# hack to setup rhizi path - needs a proper install
import sys
import os
# to work both from source dir and from deployment dir
candidate = None
for down in [['..', '..'], ['..']]:
candidate = os.path.join(*([os.path.dirname(__file__)] + down + ['server']))
if os.path.exists(candidate):
break
if None is candidate:
print("must be run from one or two directories above server")
raise SystemExit
sys.path.append(candidate)
|