From b4ff1273cfe64b200d35d5456372a10ece524a24 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Sun, 15 May 2022 14:40:50 -0300 Subject: [PATCH] Fix EXE file name on failed PKLITE/LZEXE --- biostools/extractors.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/biostools/extractors.py b/biostools/extractors.py index 59f0547..51ac1a3 100644 --- a/biostools/extractors.py +++ b/biostools/extractors.py @@ -2684,6 +2684,10 @@ class VMExtractor(ArchiveExtractor): # Keep the unpacked file around (with a dummy # header file) for other extractors to process. + try: + shutil.move(exe_path, os.path.join(dest_dir, os.path.basename(file_path))) + except: + pass try: open(os.path.join(dest_dir, ':header:'), 'wb').close() except: @@ -2763,6 +2767,10 @@ class VMExtractor(ArchiveExtractor): # Keep the unpacked file around (with a dummy # header file) for other extractors to process. + try: + shutil.move(exe_path, os.path.join(dest_dir, os.path.basename(file_path))) + except: + pass try: open(os.path.join(dest_dir, ':header:'), 'wb').close() except: