From 5dfa144c5dad275e5dd87f69591529aab70a8b7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Wed, 13 Dec 2017 18:35:49 +0100 Subject: [PATCH] mach: Remove redundant with(crate_dir). --- python/servo/devenv_commands.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/python/servo/devenv_commands.py b/python/servo/devenv_commands.py index 27458cd3344..1abf575ab5f 100644 --- a/python/servo/devenv_commands.py +++ b/python/servo/devenv_commands.py @@ -8,7 +8,7 @@ # except according to those terms. from __future__ import print_function, unicode_literals -from os import path, getcwd, listdir +from os import path, listdir from time import time import sys @@ -50,16 +50,9 @@ class MachCommands(CommandBase): params[1:1] = ['--package', 'geckoservo'] self.set_use_stable_rust() - crate_dir = path.join('ports', 'geckolib') - else: - crate_dir = path.join('ports', 'servo') build_start = time() - if self.context.topdir == getcwd(): - with cd(crate_dir): - status = call(['cargo'] + params, env=env) - else: - status = call(['cargo'] + params, env=env) + status = call(['cargo'] + params, env=env) elapsed = time() - build_start notify_build_done(self.config, elapsed, status == 0)