mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00
15 lines
418 B
Python
15 lines
418 B
Python
import os.path
|
|
import glob
|
|
from bootstrapvz.common.tools import load_data
|
|
|
|
partial_json = glob.glob(os.path.join(os.path.dirname(__file__), '*.yml'))
|
|
partial_yaml = glob.glob(os.path.join(os.path.dirname(__file__), '*.json'))
|
|
|
|
def dictkey(path):
|
|
return
|
|
# yaml overrides json
|
|
partials = {}
|
|
for path in partial_json + partial_yaml:
|
|
key = os.path.splitext(os.path.basename(path))[0]
|
|
partials[key] = load_data(path)
|
|
|