summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/plugin/expect.py
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/Ice/plugin/expect.py')
-rwxr-xr-xcpp/demo/Ice/plugin/expect.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/cpp/demo/Ice/plugin/expect.py b/cpp/demo/Ice/plugin/expect.py
index 1c80743a4a9..f35e50a72ca 100755
--- a/cpp/demo/Ice/plugin/expect.py
+++ b/cpp/demo/Ice/plugin/expect.py
@@ -22,9 +22,7 @@ sys.path.append(path[0])
from demoscript import *
from demoscript.Ice import plugin
-libraryPath = os.environ["LD_LIBRARY_PATH"];
-if Util.isLinux():
- os.environ["LD_LIBRARY_PATH"] = libraryPath + ":."
+Util.addLdPath(os.getcwd())
server = Util.spawn('./server --Ice.PrintAdapterReady --Ice.Warn.Connections=0')
server.expect('.* ready')
@@ -32,6 +30,3 @@ client = Util.spawn('./client --Ice.Warn.Connections=0')
client.expect('.*==>')
plugin.run(client, server)
-
-if Util.isLinux():
- os.environ["LD_LIBRARY_PATH"] = libraryPath \ No newline at end of file