From 97a281fc3a04eb6f1abdda11568ac8fe000de164 Mon Sep 17 00:00:00 2001 From: Arnaud Belcour Date: Tue, 26 Feb 2019 14:09:22 +0100 Subject: [PATCH] Avoid using hidden folders (issue #8). --- mpwt/multipwt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpwt/multipwt.py b/mpwt/multipwt.py index 77cadc4..1404cab 100755 --- a/mpwt/multipwt.py +++ b/mpwt/multipwt.py @@ -53,7 +53,7 @@ def check_input_and_existing_pgdb(run_ids, input_folder, output_folder, verbose= Check if PGDBs are already in ptools-local folder. """ # Check if there are files/folders inside the input folder. - species_folders = [species_folder for species_folder in os.listdir(input_folder)] + species_folders = [species_folder for species_folder in os.listdir(input_folder) if '.' not in species_folder] if len(species_folders) == 0: print("No folder containing genbank/gff file. In " + input_folder + " you must have sub-folders containing Genbank/GFF file.") return None