mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
Simplify loading of partial manifests
This commit is contained in:
parent
6b693429f3
commit
03a48b9407
1 changed files with 7 additions and 5 deletions
|
@ -1,9 +1,11 @@
|
|||
import os.path
|
||||
from bootstrapvz.common.tools import load_data
|
||||
|
||||
combine_manifests_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'manifests')
|
||||
manifests = {'base': load_data(os.path.join(combine_manifests_path, 'base.yml')),
|
||||
'partitioned': load_data(os.path.join(combine_manifests_path, 'partitioned.yml')),
|
||||
'unpartitioned': load_data(os.path.join(combine_manifests_path, 'unpartitioned.yml')),
|
||||
}
|
||||
partial_manifests_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'manifests')
|
||||
import glob
|
||||
partial_yaml = glob.glob(os.path.join(partial_manifests_path, '*.yml'))
|
||||
partial_json = glob.glob(os.path.join(partial_manifests_path, '*.json'))
|
||||
manifests = {}
|
||||
for path in partial_yaml + partial_json:
|
||||
manifests[os.path.basename(path)] = load_data(path)
|
||||
build_settings = load_data(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'build_settings.yml'))
|
||||
|
|
Loading…
Add table
Reference in a new issue