aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/command_base.py
diff options
context:
space:
mode:
authorYuri Witte <yuri.witte@pixeon.com>2021-09-12 17:36:27 -0300
committerYuri Witte <yuri.witte@pixeon.com>2021-09-12 18:24:15 -0300
commitd767191230e9baef59f2b9a7604c414c2d5f2c70 (patch)
tree47f61c3dbbaadceabd1eafbd4fc8d5711095fc00 /python/servo/command_base.py
parent74f1eb199e67e82ff713f77f7803f02a25966628 (diff)
downloadservo-d767191230e9baef59f2b9a7604c414c2d5f2c70.tar.gz
servo-d767191230e9baef59f2b9a7604c414c2d5f2c70.zip
Fix simpleservo binary check on macos
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r--python/servo/command_base.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py
index 7b4fd6ab544..2ebbdbb9851 100644
--- a/python/servo/command_base.py
+++ b/python/servo/command_base.py
@@ -373,7 +373,12 @@ class CommandBase(object):
base_path = path.join(base_path, target)
if simpleservo:
- binary_name = "simpleservo.dll" if sys.platform == "win32" else "libsimpleservo.so"
+ if sys.platform == "win32":
+ binary_name = "simpleservo.dll"
+ elif sys.platform == "darwin":
+ binary_name = "libsimpleservo.dylib"
+ else:
+ binary_name = "libsimpleservo.so"
release_path = path.join(base_path, "release", binary_name)
dev_path = path.join(base_path, "debug", binary_name)