summaryrefslogtreecommitdiff
path: root/demoscript/Util.py
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2008-02-22 15:00:44 -0500
committerDwayne Boone <dwayne@zeroc.com>2008-02-22 15:00:44 -0500
commit4513e6a27094edb443500028ccfb620b3ca533db (patch)
treed15d2a379c6714988191dd311a1fc1e52901c4af /demoscript/Util.py
parentFixed to run against 64bit installaion (diff)
downloadice-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.py14
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", "")