From 080e96ff84ebc896819a09d1b205bbda81b0d1e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thanh=20L=C3=AA?= Date: Thu, 21 Feb 2019 12:28:15 +0000 Subject: [PATCH] Fix directory_to_search not found --- albatradis/AlbaTraDIS.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/albatradis/AlbaTraDIS.py b/albatradis/AlbaTraDIS.py index 52001f0..a9ca59a 100644 --- a/albatradis/AlbaTraDIS.py +++ b/albatradis/AlbaTraDIS.py @@ -76,6 +76,6 @@ def cleanup(self): full_path_of_file_for_deletion = os.path.join(self.prefix, filename) if(re.match(str(deletion_regex), filename) != None and os.path.exists(full_path_of_file_for_deletion)): if self.verbose > 0: - print("Deleting file: "+ os.path.join(directory_to_search, filename) + " regex:"+deletion_regex) + print("Deleting file: "+ full_path_of_file_for_deletion + " regex:"+deletion_regex) os.remove(full_path_of_file_for_deletion)