diff options
author | Matthew Newhook <matthew@zeroc.com> | 2008-06-17 12:56:34 +0800 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2008-06-17 12:56:34 +0800 |
commit | 4e40e22bfb7f2e8dce8859ab2104b91882b55f61 (patch) | |
tree | fefeb0fe8664378544f956db5acc59dc72a6707a /py/test/Ice/timeout/Server.py | |
parent | remove double build in the interceptor test. (diff) | |
download | ice-4e40e22bfb7f2e8dce8859ab2104b91882b55f61.tar.bz2 ice-4e40e22bfb7f2e8dce8859ab2104b91882b55f61.tar.xz ice-4e40e22bfb7f2e8dce8859ab2104b91882b55f61.zip |
http://bugzilla/bugzilla/show_bug.cgi?id=3265
- Simplified the python implementation of Ice.getSliceDir
- Added ruby implementation of Ice.getSliceDir
- Adjusted demos & tests to use Ice.getSliceDir appropriately.
Diffstat (limited to 'py/test/Ice/timeout/Server.py')
-rwxr-xr-x | py/test/Ice/timeout/Server.py | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/py/test/Ice/timeout/Server.py b/py/test/Ice/timeout/Server.py index 40058144efe..631c6aea27e 100755 --- a/py/test/Ice/timeout/Server.py +++ b/py/test/Ice/timeout/Server.py @@ -10,20 +10,9 @@ import os, sys, traceback, time, threading -for toplevel in [".", "..", "../..", "../../..", "../../../.."]: - toplevel = os.path.normpath(toplevel) - if os.path.exists(os.path.join(toplevel, "python", "Ice.py")): - break -else: - raise "can't find toplevel directory!" - import Ice - -# -# Get Slice directory. -# -slice_dir = os.path.join(os.path.join(toplevel, "..", "slice")) -if not os.path.exists(slice_dir): +slice_dir = Ice.getSliceDir() +if not slice_dir: print sys.argv[0] + ': Slice directory not found.' sys.exit(1) |