diff options
Diffstat (limited to 'py/test/Ice/operations/Client.py')
-rw-r--r-- | py/test/Ice/operations/Client.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/py/test/Ice/operations/Client.py b/py/test/Ice/operations/Client.py index fd40440b63d..9a0c6494b99 100644 --- a/py/test/Ice/operations/Client.py +++ b/py/test/Ice/operations/Client.py @@ -18,15 +18,12 @@ else: raise "can't find toplevel directory!" # -# Find Slice directory. +# Get Slice directory. # slice_dir = os.path.join(os.path.join(toplevel, "..", "slice")) if not os.path.exists(slice_dir): - home_dir = os.getenv('ICE_HOME', '') - if len(home_dir) == 0 or not os.path.exists(os.path.join(home_dir, "slice")): - print sys.argv[0] + ': Slice directory not found. Define ICE_HOME.' - sys.exit(1) - slice_dir = os.path.join(home_dir, "slice") + print sys.argv[0] + ': Slice directory not found.' + sys.exit(1) import Ice Ice.loadSlice('-I' + slice_dir + ' Test.ice') |