diff options
author | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2008-07-01 19:44:35 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2008-07-01 19:44:35 +0530 |
commit | a2f39cf63e574bbe61958d24702d9766f124f287 (patch) | |
tree | 464c361aa9a98a733f9a3695a6d6a0e54acbc050 | |
parent | Implement support for {>,<}= in autotua.jobuild.Jobuild()._best_jobuild() (diff) | |
download | autotua-a2f39cf63e574bbe61958d24702d9766f124f287.tar.gz autotua-a2f39cf63e574bbe61958d24702d9766f124f287.tar.bz2 autotua-a2f39cf63e574bbe61958d24702d9766f124f287.zip |
Cleanup workdir+jobdir after work is done
-rw-r--r-- | slave/autotua/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/slave/autotua/__init__.py b/slave/autotua/__init__.py index d796d53..af16e41 100644 --- a/slave/autotua/__init__.py +++ b/slave/autotua/__init__.py @@ -6,7 +6,7 @@ # Immortal lh! # -import os, sys +import os, sys, shutil import os.path as osp from autotua import fetch, const, sync, chroot, jobuild @@ -120,3 +120,5 @@ class Job: def clean(self): self.chroot.clean() + shutil.rmtree(self.jobdir) + os.removedirs(const.WORKDIR, self.maint) |