diff options
| author | Christian Goetze <cg@lindenlab.com> | 2008-07-25 20:21:32 +0000 | 
|---|---|---|
| committer | Christian Goetze <cg@lindenlab.com> | 2008-07-25 20:21:32 +0000 | 
| commit | e79f766f572f6540db4d09d8ffdc61e6daff66d0 (patch) | |
| tree | f644c6cadb2f61b64c492802a88522414c4e90b9 /scripts | |
| parent | 75b2af6df8d0980470d5e5a576280af598a988fc (diff) | |
Tweak output of test_all_platforms.py
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/update_version_files.py | 20 | 
1 files changed, 16 insertions, 4 deletions
| diff --git a/scripts/update_version_files.py b/scripts/update_version_files.py index 95ff19c65b..528eedc23a 100755 --- a/scripts/update_version_files.py +++ b/scripts/update_version_files.py @@ -4,10 +4,22 @@  # instead of having to figure it out by hand  # -from os.path import realpath, dirname, join, exists -setup_path = join(dirname(realpath(__file__)), "setup-path.py") -if exists(setup_path): -    execfile(setup_path) +import sys +import os +import os.path + +root = os.path.abspath(__file__) +while root != os.path.sep: +    root = os.path.dirname(root) +    dir = os.path.join(root, 'indra', 'lib', 'python') +    if os.path.isdir(dir): +        if dir not in sys.path: +            sys.path.insert(0, dir) +        break +else: +    print >>sys.stderr, "This script is not inside a valid installation." +    sys.exit(1) +  import getopt, sys, os, re, commands  from indra.util import llversion | 
