From 1990a22a1b9dd6641b9cc34bb76d8749c1096cd6 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Wed, 15 May 2019 22:09:31 -0400 Subject: Raise an error if ML SDK doesn't exist. --- python/servo/build_commands.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python/servo/build_commands.py') diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py index d6170abfb1e..05d832e3403 100644 --- a/python/servo/build_commands.py +++ b/python/servo/build_commands.py @@ -518,6 +518,8 @@ class MachCommands(CommandBase): ml_sdk = env.get("MAGICLEAP_SDK") if not ml_sdk: raise Exception("Magic Leap builds need the MAGICLEAP_SDK environment variable") + if not os.path.exists(ml_sdk): + raise Exception("Path specified by MAGICLEAP_SDK does not exist.") ml_support = path.join(self.get_top_dir(), "support", "magicleap") -- cgit v1.2.3