aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/bootstrap_commands.py
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-02-03 16:47:44 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-02-03 16:47:44 +0530
commit3fd8e2da27ac1d3b172c643f94692e4b036d6397 (patch)
tree101176574ac6bb314ca23ba12062046a2e77bfce /python/servo/bootstrap_commands.py
parent954a044570c9517d08d63d92707109cf05a28dbe (diff)
downloadservo-3fd8e2da27ac1d3b172c643f94692e4b036d6397.tar.gz
servo-3fd8e2da27ac1d3b172c643f94692e4b036d6397.zip
Fix the docs again
Diffstat (limited to 'python/servo/bootstrap_commands.py')
-rw-r--r--python/servo/bootstrap_commands.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/servo/bootstrap_commands.py b/python/servo/bootstrap_commands.py
index 6828774da6a..cca2589b52c 100644
--- a/python/servo/bootstrap_commands.py
+++ b/python/servo/bootstrap_commands.py
@@ -127,7 +127,8 @@ class MachCommands(CommandBase):
print("Extracting Rust docs...")
temp_dir = path.join(hash_dir, "temp_docs")
- shutil.rmtree(temp_dir)
+ if path.isdir(temp_dir):
+ shutil.rmtree(temp_dir)
extract(tgz_file, temp_dir)
shutil.move(path.join(temp_dir, docs_name.split("/")[1], "share", "doc", "rust", "html"), docs_dir)
shutil.rmtree(temp_dir)