Skip to content
Snippets Groups Projects
Commit 25f95cd0 authored by James Cook's avatar James Cook
Browse files

SL-38184 Make python scripts in linden/scripts run in place without PYTHONPATH...

SL-38184 Make python scripts in linden/scripts run in place without PYTHONPATH or symlinks.  Reviewed with Donovan.
parent c93c38e0
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/python
# Get the python library directory in the path, so we don't have
# to screw with PYTHONPATH or symbolic links. JC
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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment