summaryrefslogtreecommitdiff
path: root/scripts/Util.py
diff options
context:
space:
mode:
authorAustin Henriksen <austin@zeroc.com>2020-02-10 14:23:15 -0500
committerJoe George <joe@zeroc.com>2023-12-07 11:13:02 -0500
commit0d709b71c85fde11b44fb83d19d57b2b1d81ee2a (patch)
tree963c94fedc966b12a7c085be3731fc6c5f9516a4 /scripts/Util.py
parentFix indentation (diff)
downloadice-0d709b71c85fde11b44fb83d19d57b2b1d81ee2a.tar.bz2
ice-0d709b71c85fde11b44fb83d19d57b2b1d81ee2a.tar.xz
ice-0d709b71c85fde11b44fb83d19d57b2b1d81ee2a.zip
Fixes #708.
(cherry picked from commit e72ec310aba8a19ffb2655091be75b7bd2e6e371)
Diffstat (limited to 'scripts/Util.py')
-rw-r--r--scripts/Util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/Util.py b/scripts/Util.py
index 0af3ee081d8..1801fd692e7 100644
--- a/scripts/Util.py
+++ b/scripts/Util.py
@@ -243,7 +243,7 @@ class Platform(object):
def hasSwift(self, version):
if self._hasSwift is None:
try:
- m = re.search("Apple Swift version ([0-9]+\.[0-9]+)", run("swift --version"))
+ m = re.search(r"Apple Swift version ([0-9]+\.[0-9]+)", run("swift --version"))
if m and m.group(1):
self._hasSwift = tuple([int(n) for n in m.group(1).split(".")]) >= version
else:
@@ -3842,7 +3842,7 @@ class SwiftMapping(Mapping):
"macOS",
current.config.buildConfig)
- targetBuildDir = re.search("\sTARGET_BUILD_DIR = (.*)", run(cmd)).groups(1)[0]
+ targetBuildDir = re.search(r"\sTARGET_BUILD_DIR = (.*)", run(cmd)).groups(1)[0]
testDriver = os.path.join(targetBuildDir, "TestDriver.app/Contents/MacOS/TestDriver")
if not os.path.exists(testDriver):