mirror of
https://github.com/servo/servo.git
synced 2025-06-13 10:54:29 +00:00
commit
ff10deb814
1 changed files with 7 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
from __future__ import print_function, unicode_literals
|
||||
from os import path
|
||||
from os import path, getcwd
|
||||
|
||||
import subprocess
|
||||
|
||||
|
@ -23,7 +23,12 @@ class MachCommands(CommandBase):
|
|||
def cargo(self, params):
|
||||
if not params:
|
||||
params = []
|
||||
return subprocess.call(["cargo"] + params,
|
||||
|
||||
if self.context.topdir == getcwd():
|
||||
with cd(path.join('components', 'servo')):
|
||||
return subprocess.call(["cargo"] + params,
|
||||
env=self.build_env())
|
||||
return subprocess.call(['cargo'] + params,
|
||||
env=self.build_env())
|
||||
|
||||
@Command('update-cargo',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue