diff options
-rwxr-xr-x | cpp/test/Slice/errorDetection/run.py | 2 | ||||
-rwxr-xr-x | scripts/TestUtil.py | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/cpp/test/Slice/errorDetection/run.py b/cpp/test/Slice/errorDetection/run.py index 3ab0064935b..4f5e1d40d55 100755 --- a/cpp/test/Slice/errorDetection/run.py +++ b/cpp/test/Slice/errorDetection/run.py @@ -20,7 +20,7 @@ if len(path) == 0: sys.path.append(os.path.join(path[0], "scripts")) import TestUtil -slice2cpp = '"%s"' % os.path.join(TestUtil.getCppBinDir(), "slice2cpp") +slice2cpp = '"%s"' % TestUtil.getSliceTranslator() regex1 = re.compile("\.ice$", re.IGNORECASE) files = [] diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py index e6a0ad828f9..a1ac873cf85 100755 --- a/scripts/TestUtil.py +++ b/scripts/TestUtil.py @@ -1646,6 +1646,9 @@ def getCppBinDir(lang = None): binDir = os.path.join(binDir, "c++11") return binDir +def getSliceTranslator(lang = "cpp"): + return os.path.join(os.path.join(iceHome if iceHome else getIceDir("cpp"), "bin") , "slice2%s" % lang) + def getCppLibDir(lang = None): if isWin32(): return getCppBinDir(lang) |