summaryrefslogtreecommitdiff
path: root/scripts/setup-path.py
blob: a623b2a8ee9245e38c064c3514c1668833e7ec57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/python
"""\
@file setup-path.py
@brief Get the python library directory in the path, so we don't have
to screw with PYTHONPATH or symbolic links.

Copyright (c) 2007-$CurrentYear$, Linden Research, Inc.
$License$
"""

import sys
from os.path import realpath, dirname, join

# Walk back to checkout base directory
dir = dirname(dirname(realpath(__file__)))
# Walk in to libraries directory
dir = join(join(join(dir, 'indra'), 'lib'), 'python')

if dir not in sys.path:
    sys.path.insert(0, dir)