diff options
author | Mark Spruiell <mes@zeroc.com> | 2005-09-14 19:44:51 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2005-09-14 19:44:51 +0000 |
commit | 48918d87206d3cc754f5741f9b0f844c0799ca3a (patch) | |
tree | 74189a0639c5dce5bd39a0ddbd7c6301ca6d44d2 /py/test/Ice/operations/Client.py | |
parent | fix for bug 282 (diff) | |
download | ice-48918d87206d3cc754f5741f9b0f844c0799ca3a.tar.bz2 ice-48918d87206d3cc754f5741f9b0f844c0799ca3a.tar.xz ice-48918d87206d3cc754f5741f9b0f844c0799ca3a.zip |
adding collocated tests
Diffstat (limited to 'py/test/Ice/operations/Client.py')
-rw-r--r-- | py/test/Ice/operations/Client.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/py/test/Ice/operations/Client.py b/py/test/Ice/operations/Client.py index 9257f070b7f..89bf8de03c6 100644 --- a/py/test/Ice/operations/Client.py +++ b/py/test/Ice/operations/Client.py @@ -20,7 +20,19 @@ else: sys.path.insert(0, os.path.join(toplevel, "python")) sys.path.insert(0, os.path.join(toplevel, "lib")) -import Ice, AllTests +# +# Find Slice directory. +# +slice_dir = os.getenv('ICEPY_HOME', '') +if len(slice_dir) == 0 or not os.path.exists(os.path.join(slice_dir, "slice")): + slice_dir = os.getenv('ICE_HOME', '') +if len(slice_dir) == 0 or not os.path.exists(os.path.join(slice_dir, "slice")): + print sys.argv[0] + ': Slice directory not found. Define ICEPY_HOME or ICE_HOME.' + sys.exit(1) + +import Ice +Ice.loadSlice('-I' + slice_dir + '/slice Test.ice') +import AllTests def test(b): if not b: |