fix so that files like .keep are not imported
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user