From 7efad39ccd98dcdde8b81827d6e44c9deb310e36 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Wed, 3 Dec 2014 15:50:21 -0800 Subject: [PATCH] =?UTF-8?q?Make=20'mach=20doc'=20not=20fail=20when=20compo?= =?UTF-8?q?nents/servo/target=20doesn=E2=80=99t=20exist.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python/servo/post_build_commands.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/servo/post_build_commands.py b/python/servo/post_build_commands.py index 236726f4771..8fdc33eb116 100644 --- a/python/servo/post_build_commands.py +++ b/python/servo/post_build_commands.py @@ -80,9 +80,10 @@ class MachCommands(CommandBase): self.ensure_bootstrapped() rust_docs = path.join(self.config["tools"]["rust-root"], "doc") - docs = path.join("components", "servo", "target", "doc") + docs = path.join( + self.context.topdir, "components", "servo", "target", "doc") if not path.exists(docs): - os.mkdir(docs) + os.makedirs(docs) if read_file(path.join(docs, "version_info.html"), if_exists=True) != \ read_file(path.join(rust_docs, "version_info.html")):