diff --git a/.gitignore b/.gitignore index 00792726..600a6424 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ /_CPack_Packages /doc/doxyxml /doc/html +/doc/virtualenv /Testing /install_manifest.txt *~ diff --git a/doc/build.py b/doc/build.py index dca113db..c2675923 100755 --- a/doc/build.py +++ b/doc/build.py @@ -53,11 +53,5 @@ def build_docs(workdir, travis): returncode = 1 travis = 'TRAVIS' in os.environ -workdir = tempfile.mkdtemp() -try: - returncode = build_docs(workdir, travis=travis) -finally: - # Don't remove workdir on Travis because the VM is discarded anyway. - if not travis: - shutil.rmtree(workdir) +returncode = build_docs('', travis=travis) exit(returncode)