diff --git a/modules/meta-extraction/MetadataExtractor.py b/modules/meta-extraction/MetadataExtractor.py index 9e9da01..448e839 100644 --- a/modules/meta-extraction/MetadataExtractor.py +++ b/modules/meta-extraction/MetadataExtractor.py @@ -226,7 +226,6 @@ def extract_metadata(): # Delete the processed DICOM objects from the storage. def clear_storage(): os.chdir(STORAGE_FOLDER) - global processed_series_but_yet_to_delete global processed_and_deleted_series @@ -236,7 +235,7 @@ def clear_storage(): for del_series in processed_series_but_yet_to_delete: try: - shutil.rmtree(STORAGE_FOLDER + del_series) + shutil.rmtree(del_series) processed_and_deleted_series.append(del_series) processed_series_but_yet_to_delete.remove(del_series)