fix so that files like .keep are not imported

This commit is contained in:
cktricky
2018-09-20 09:57:03 -04:00
committed by Kenneth Toler
parent f54427dd18
commit d2075c3943
2 changed files with 3 additions and 2 deletions

View File

@@ -12,5 +12,6 @@ def list_all_files(directory):
and not (os.path.basename(dirpath).startswith('__')) ): and not (os.path.basename(dirpath).startswith('__')) ):
for file in filenames: for file in filenames:
list_path_name = dirpath.split('/') 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 return array

View File

@@ -69,7 +69,7 @@ except:
if (args.list): if (args.list):
for module in all_modules: for module in all_modules:
print(module) print(dir(module))
# arg_list has to be defined otherwise will cause an exception # arg_list has to be defined otherwise will cause an exception