def get_assets_by_type(asset_type): vendor_assets = get_libraries() application_assets = get_appication() return Bundle(Bundle(*(vendor_assets[asset_type] if asset_type in vendor_assets else [])), Bundle(*[ create_asset(asset) for asset in application_assets[asset_type] ], output='gen/full.'+asset_type) if asset_type in application_assets else Bundle())
def get_assets_by_category_and_type(category, asset_type): assets = get_files(category) return Bundle(*[ create_asset(asset) for asset in assets[asset_type] ], output='gen/full.'+asset_type) if asset_type in assets else Bundle()