aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Legoll <vincent.legoll@gmail.com>2020-03-20 22:44:51 +0100
committerJens Axboe <axboe@kernel.dk>2020-03-20 15:53:50 -0600
commitedb0360a20a18c0244909dc1a39015f05710c5f5 (patch)
tree70b8549578ea507c56a412b164600a7a59301abe
parent86c6ec280c38df9a68a2061eed2ec659e0a0f7c7 (diff)
downloadblktrace-edb0360a20a18c0244909dc1a39015f05710c5f5.tar.gz
bno_plot.py: Use shutil.rmtree() instead of os.system('/bin/rm')
Signed-off-by: Vincent Legoll <vincent.legoll@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--btt/bno_plot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/btt/bno_plot.py b/btt/bno_plot.py
index f05cfdc..36fc524 100644
--- a/btt/bno_plot.py
+++ b/btt/bno_plot.py
@@ -40,7 +40,7 @@ To exit the plotter, enter 'quit' or ^D at the 'gnuplot> ' prompt.
from __future__ import absolute_import
from __future__ import print_function
-import getopt, glob, os, sys, tempfile
+import getopt, glob, os, sys, tempfile, shutil
verbose = 0
cmds = """
@@ -125,4 +125,4 @@ if __name__ == '__main__':
sys.exit(1)
os.waitpid(pid, 0)
- os.system('/bin/rm -rf ' + tmpdir)
+ shutil.rmtree(tmpdir)