diff options
Diffstat (limited to 'py/test/Ice/inheritance/Client.py')
-rw-r--r-- | py/test/Ice/inheritance/Client.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/py/test/Ice/inheritance/Client.py b/py/test/Ice/inheritance/Client.py index 5d0f2450df3..fb0335641a8 100644 --- a/py/test/Ice/inheritance/Client.py +++ b/py/test/Ice/inheritance/Client.py @@ -7,7 +7,19 @@ # # ********************************************************************** -import sys, traceback, Ice, AllTests +import os, sys, traceback + +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!" + +sys.path.insert(0, os.path.join(toplevel, "python")) +sys.path.insert(0, os.path.join(toplevel, "lib")) + +import Ice, AllTests def run(args, communicator): initial = AllTests.allTests(communicator) |