diff options
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-x | scripts/TestUtil.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py index f36b0698c3a..32a57da6d4d 100755 --- a/scripts/TestUtil.py +++ b/scripts/TestUtil.py @@ -1887,10 +1887,14 @@ def getCppBinDir(lang = None): return binDir def getSliceTranslator(lang = "cpp"): + compiler = "" if iceHome: - return os.path.join(iceHome, "bin", "slice2%s" % lang) + compiler = os.path.join(iceHome, "bin", "slice2%s" % lang) else: - return os.path.join(getCppBinDir(), ("slice2%s" % lang)) + compiler = os.path.join(getCppBinDir(), ("slice2%s" % lang)) + if isWin32(): + compiler += ".exe" + return compiler def getCppLibDir(lang = None): if isWin32(): |