diff --git a/python/servo/command_base.py b/python/servo/command_base.py index 1623c8fc41f7..0b51bf93dc65 100644 --- a/python/servo/command_base.py +++ b/python/servo/command_base.py @@ -293,8 +293,7 @@ def build_env(self, gonk=False, hosts_file_path=None): if extra_path: env["PATH"] = "%s%s%s" % (os.pathsep.join(extra_path), os.pathsep, env["PATH"]) - if "CARGO_HOME" not in env: - env["CARGO_HOME"] = self.config["tools"]["cargo-home-dir"] + env["CARGO_HOME"] = self.config["tools"]["cargo-home-dir"] if "CARGO_TARGET_DIR" not in env: env["CARGO_TARGET_DIR"] = path.join(self.context.topdir, "target")