summaryrefslogtreecommitdiff
path: root/scripts/TestUtil.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-xscripts/TestUtil.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py
index be511edb9f2..831bc389b8f 100755
--- a/scripts/TestUtil.py
+++ b/scripts/TestUtil.py
@@ -752,7 +752,8 @@ def phpFlags():
else:
ext += ".so"
if not iceHome:
- extDir = os.path.abspath(os.path.join(toplevel, "php", "lib"))
+ phpDir = lambda langDir: langDir if "php" in langDir else "php"
+ extDir = os.path.abspath(os.path.join(toplevel, phpDir(getDefaultMappingDir()), "lib"))
incDir = extDir
else:
#