diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-12-13 18:35:49 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-12-13 22:03:27 +0100 |
commit | 5dfa144c5dad275e5dd87f69591529aab70a8b7e (patch) | |
tree | 848619ededb9d939641edd491f76cfc8740ea0ac /python/servo/devenv_commands.py | |
parent | f2314c10ca4b012205092666abaa8fd3d3cbd569 (diff) | |
download | servo-5dfa144c5dad275e5dd87f69591529aab70a8b7e.tar.gz servo-5dfa144c5dad275e5dd87f69591529aab70a8b7e.zip |
mach: Remove redundant with(crate_dir).
Diffstat (limited to 'python/servo/devenv_commands.py')
-rw-r--r-- | python/servo/devenv_commands.py | 11 |
1 files 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) |