diff options
author | Jacek Antonelli | 2008-08-15 23:45:02 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:02 -0500 |
commit | d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd (patch) | |
tree | 7ed0c2c27d717801238a2e6b5749cd5bf88c3059 /linden/scripts/setup-path.py | |
parent | Second Life viewer sources 1.17.3.0 (diff) | |
download | meta-impy-d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd.zip meta-impy-d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd.tar.gz meta-impy-d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd.tar.bz2 meta-impy-d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd.tar.xz |
Second Life viewer sources 1.18.0.6
Diffstat (limited to 'linden/scripts/setup-path.py')
-rwxr-xr-x | linden/scripts/setup-path.py | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/linden/scripts/setup-path.py b/linden/scripts/setup-path.py new file mode 100755 index 0000000..30048ba --- /dev/null +++ b/linden/scripts/setup-path.py | |||
@@ -0,0 +1,38 @@ | |||
1 | #!/usr/bin/python | ||
2 | # @file setup-path.py | ||
3 | # @brief Get the python library directory in the path, so we don't have | ||
4 | # to screw with PYTHONPATH or symbolic links. | ||
5 | # | ||
6 | # Copyright (c) 2007-2007, Linden Research, Inc. | ||
7 | # | ||
8 | # Second Life Viewer Source Code | ||
9 | # The source code in this file ("Source Code") is provided by Linden Lab | ||
10 | # to you under the terms of the GNU General Public License, version 2.0 | ||
11 | # ("GPL"), unless you have obtained a separate licensing agreement | ||
12 | # ("Other License"), formally executed by you and Linden Lab. Terms of | ||
13 | # the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
14 | # online at http://secondlife.com/developers/opensource/gplv2 | ||
15 | # | ||
16 | # There are special exceptions to the terms and conditions of the GPL as | ||
17 | # it is applied to this Source Code. View the full text of the exception | ||
18 | # in the file doc/FLOSS-exception.txt in this software distribution, or | ||
19 | # online at http://secondlife.com/developers/opensource/flossexception | ||
20 | # | ||
21 | # By copying, modifying or distributing this software, you acknowledge | ||
22 | # that you have read and understood your obligations described above, | ||
23 | # and agree to abide by those obligations. | ||
24 | # | ||
25 | # ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
26 | # WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
27 | # COMPLETENESS OR PERFORMANCE. | ||
28 | |||
29 | import sys | ||
30 | from os.path import realpath, dirname, join | ||
31 | |||
32 | # Walk back to checkout base directory | ||
33 | dir = dirname(dirname(realpath(__file__))) | ||
34 | # Walk in to libraries directory | ||
35 | dir = join(join(join(dir, 'indra'), 'lib'), 'python') | ||
36 | |||
37 | if dir not in sys.path: | ||
38 | sys.path.insert(0, dir) | ||