Logs and hotspots in builder

This commit is contained in:
ful1e5 2020-10-08 12:34:19 +05:30
parent b0454304a9
commit f1fbce7510
7 changed files with 123 additions and 9 deletions

View file

@ -2,13 +2,15 @@
# -*- coding: utf-8 -*-
import os
import log
import sys
import json
import builder
from os import path, listdir
import shutil
class ConfigProvider():
class ConfigsProvider():
"""
Configure `Bibata` building process.
"""
@ -53,6 +55,10 @@ class ConfigProvider():
self.__bitmaps_dir: str = bitmaps_dir
self.__out_dir: str = out_dir
# read hotspots file
with open(path.join(builder.__path__[0], "hotspots.json")) as hotspot_file:
self.hotspots = json.loads(hotspot_file.read())
def get_windows_script(self, theme_name: str, author: str) -> str:
with open(path.join(builder.__path__[0], "windows.inf")) as f: