diff options
author | Mark Spruiell <mes@zeroc.com> | 2008-03-12 20:37:19 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2008-03-12 20:37:19 -0700 |
commit | aba437bf7457b1953462154ea37e206a9e9d767b (patch) | |
tree | 24e6ac79b33e8e61cc587d8d665306c03c8d80c8 /py/test/Ice/operations/Client.py | |
parent | Fixed build against binary distribution (diff) | |
download | ice-aba437bf7457b1953462154ea37e206a9e9d767b.tar.bz2 ice-aba437bf7457b1953462154ea37e206a9e9d767b.tar.xz ice-aba437bf7457b1953462154ea37e206a9e9d767b.zip |
Python ICE_HOME fixes, incl. bug 2750
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') |