diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2008-02-22 15:00:44 -0500 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2008-02-22 15:00:44 -0500 |
commit | 4513e6a27094edb443500028ccfb620b3ca533db (patch) | |
tree | d15d2a379c6714988191dd311a1fc1e52901c4af /demoscript/Util.py | |
parent | Fixed to run against 64bit installaion (diff) | |
download | ice-4513e6a27094edb443500028ccfb620b3ca533db.tar.bz2 ice-4513e6a27094edb443500028ccfb620b3ca533db.tar.xz ice-4513e6a27094edb443500028ccfb620b3ca533db.zip |
Fixes to run demos against 64 bit installation
Diffstat (limited to 'demoscript/Util.py')
-rw-r--r-- | demoscript/Util.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/demoscript/Util.py b/demoscript/Util.py index 77f613b2f02..59960e51ca4 100644 --- a/demoscript/Util.py +++ b/demoscript/Util.py @@ -198,3 +198,17 @@ def cleanDbDir(path): pass else: os.remove(filename) + +def addLdPath(libpath): + if sys.platform == "win32": + os.environ["PATH"] = libpath + os.pathsep + os.getenv("PATH", "") + elif sys.platform == "hp-ux11": + os.environ["SHLIB_PATH"] = libpath + os.pathsep + os.getenv("SHLIB_PATH", "") + os.environ["LD_LIBRARY_PATH"] = libpath + os.pathsep + os.getenv("LD_LIBRARY_PATH", "") + elif sys.platform == "darwin": + os.environ["DYLD_LIBRARY_PATH"] = libpath + os.pathsep + os.getenv("DYLD_LIBRARY_PATH", "") + elif sys.platform in ['aix4', 'aix5']: + os.environ["LIBPATH"] = libpath + os.pathsep + os.getenv("LIBPATH", "") + else: + os.environ["LD_LIBRARY_PATH"] = libpath + os.pathsep + os.getenv("LD_LIBRARY_PATH", "") + os.environ["LD_LIBRARY_PATH_64"] = libpath + os.pathsep + os.getenv("LD_LIBRARY_PATH_64", "") |