Commit ab63d04a authored by Nick Sauerwein's avatar Nick Sauerwein
Browse files

organisation tools modified. find function more universal.

parent 58a211f9
......@@ -50,15 +50,22 @@ def get_subfolders(base_folder):
base_folder += '*/'
return subfolders
def find_configs(base_folder, output = True):
subfolders = get_subfolders(base_folder)
def find_configs(glob_input):
def find(base_folder, total = False, kind = 'config'):
if total:
subfolders = get_subfolders(base_folder)
else:
from glob import glob
subfolders = glob(glob_input)
configs = []
for folder in subfolders:
new_configs = IO(folder).search(output = False)
new_configs = IO(folder).search(output = False, kind = kind)
for config in new_configs:
config['folder'] = folder
configs += new_configs
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment