diff options
Diffstat (limited to 'python/servo')
-rw-r--r-- | python/servo/bootstrap_commands.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python/servo/bootstrap_commands.py b/python/servo/bootstrap_commands.py index 3be7a208815..092d6653d2d 100644 --- a/python/servo/bootstrap_commands.py +++ b/python/servo/bootstrap_commands.py @@ -39,12 +39,12 @@ class MachCommands(CommandBase): category='bootstrap') def env(self): env = self.build_env() - print("export RUSTFLAGS=%s" % env["RUSTFLAGS"]) - print("export PATH=%s" % env["PATH"]) + print("export RUSTFLAGS=%s" % env.get("RUSTFLAGS", "")) + print("export PATH=%s" % env.get("PATH", "")) if sys.platform == "darwin": - print("export DYLD_LIBRARY_PATH=%s" % env["DYLD_LIBRARY_PATH"]) + print("export DYLD_LIBRARY_PATH=%s" % env.get("DYLD_LIBRARY_PATH", "")) else: - print("export LD_LIBRARY_PATH=%s" % env["LD_LIBRARY_PATH"]) + print("export LD_LIBRARY_PATH=%s" % env.get("LD_LIBRARY_PATH", "")) @Command('bootstrap', description='Install required packages for building.', |