aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/post_build_commands.py
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-11-19 15:01:40 -0600
committerGitHub <noreply@github.com>2016-11-19 15:01:40 -0600
commit73cbe61d563c0f5031518ef72e2492ac12f327f9 (patch)
tree66dbbafc5397896749034094483a99ca2657517a /python/servo/post_build_commands.py
parent72ebb74d1caa25375d8b28da379f17b2632a9061 (diff)
parent02f189060c7a45ee0c5ee40ee7e3f8148efffae8 (diff)
downloadservo-73cbe61d563c0f5031518ef72e2492ac12f327f9.tar.gz
servo-73cbe61d563c0f5031518ef72e2492ac12f327f9.zip
Auto merge of #14281 - mbrubeck:mach-doc-fix, r=Manishearth
Run cargo doc in the ports/servo directory Running it in components/servo isn't guaranteed to work because there's no Cargo.lock checked in there. Followup to #14254. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14281) <!-- Reviewable:end -->
Diffstat (limited to 'python/servo/post_build_commands.py')
-rw-r--r--python/servo/post_build_commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/servo/post_build_commands.py b/python/servo/post_build_commands.py
index 58d4811f3e9..78e1a230ed5 100644
--- a/python/servo/post_build_commands.py
+++ b/python/servo/post_build_commands.py
@@ -217,7 +217,7 @@ class PostBuildCommands(CommandBase):
copy2(full_name, destination)
return call(["cargo", "doc"] + params,
- env=self.build_env(), cwd=path.join('components', 'servo'))
+ env=self.build_env(), cwd=self.servo_crate())
@Command('browse-doc',
description='Generate documentation and open it in a web browser',