X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-util.git;a=blobdiff_plain;f=source%2Fnew-driver;h=33b717745b5c1ec958690b25a921e348481c7761;hp=81f40699ada296e03a5855031189744e0101445f;hb=e3f27bc0a0ee12c645171af295310540a3ef9f2c;hpb=b63f8cef412cce8ee15afd97709e6f8b3e722437 diff --git a/source/new-driver b/source/new-driver index 81f4069..33b7177 100755 --- a/source/new-driver +++ b/source/new-driver @@ -68,7 +68,8 @@ def new_driver(): make_patch(gitdir) except Exception as e: print(e) - shutil.rmtree(tmp) + finally: + shutil.rmtree(tmp) # add DRIVER and DRIVER2 entries to configure.ac