summaryrefslogtreecommitdiff
path: root/ybd.py
diff options
context:
space:
mode:
authorPaul Sherwood <paul.sherwood@codethink.co.uk>2015-09-12 17:39:31 +0000
committerPaul Sherwood <paul.sherwood@codethink.co.uk>2015-09-12 17:39:31 +0000
commit3e79a196f5313b71a270ca351ae2ffcb5f3edc1e (patch)
tree708fa3bf0bf62b3b3dee9678bac5ce5de4429729 /ybd.py
parent1a90e16db34bd049d508ef34e1566f529bc3c7a4 (diff)
downloadybd-3e79a196f5313b71a270ca351ae2ffcb5f3edc1e.tar.gz
Move cleanup outside the TOTAL timer
Diffstat (limited to 'ybd.py')
-rwxr-xr-xybd.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/ybd.py b/ybd.py
index c7d5b8c..2505d88 100755
--- a/ybd.py
+++ b/ybd.py
@@ -30,11 +30,10 @@ import sandboxlib
print('')
-with app.timer('TOTAL'):
- app.setup(sys.argv)
-
- app.cleanup(app.config['tmp'])
+app.setup(sys.argv)
+app.cleanup(app.config['tmp'])
+with app.timer('TOTAL'):
lockfile = open(os.path.join(app.config['base'], 'lock'), 'r')
fcntl.flock(lockfile, fcntl.LOCK_SH | fcntl.LOCK_NB)