From 7d04eaea7bdced81581e8436ce14f8c276b30c9d Mon Sep 17 00:00:00 2001 From: cktricky Date: Thu, 20 Sep 2018 09:57:03 -0400 Subject: [PATCH] fix so that files like .keep are not imported --- libs/utils/common.py | 3 ++- weirdAAL.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/utils/common.py b/libs/utils/common.py index 069c258..ecfc882 100644 --- a/libs/utils/common.py +++ b/libs/utils/common.py @@ -12,5 +12,6 @@ def list_all_files(directory): and not (os.path.basename(dirpath).startswith('__')) ): for file in filenames: list_path_name = dirpath.split('/') - array.append(".".join(list_path_name) + "." + os.path.splitext(file)[0]) + if not (file.startswith('.')): + array.append(".".join(list_path_name) + "." + os.path.splitext(file)[0]) return array diff --git a/weirdAAL.py b/weirdAAL.py index 61d041a..efabcfb 100755 --- a/weirdAAL.py +++ b/weirdAAL.py @@ -69,7 +69,7 @@ except: if (args.list): for module in all_modules: - print(module) + print(dir(module)) # arg_list has to be defined otherwise will cause an exception