diff --git a/bot/crawlers/crawlers.py b/bot/crawlers/crawlers.py index 97b3794..3af886c 100644 --- a/bot/crawlers/crawlers.py +++ b/bot/crawlers/crawlers.py @@ -3,7 +3,7 @@ import re from abc import ABC, abstractmethod from bs4 import BeautifulSoup -import bot.scraper as Scraper +import bot.crawlers.scraper as Scraper from bot.entries.factory import new_entry from bot.yomichan.exporters.factory import new_yomi_exporter from bot.mdict.exporters.factory import new_mdict_exporter diff --git a/bot/scraper.py b/bot/crawlers/scraper.py similarity index 100% rename from bot/scraper.py rename to bot/crawlers/scraper.py diff --git a/bot/mdict/exporters/export.py b/bot/mdict/exporters/export.py index 2d76f1d..7aa0a3a 100644 --- a/bot/mdict/exporters/export.py +++ b/bot/mdict/exporters/export.py @@ -36,6 +36,7 @@ class Exporter(ABC): return self._build_dir cache_dir = user_cache_dir("jitenbot") build_directory = os.path.join(cache_dir, "mdict_build") + print(f"Initializing build directory `{build_directory}`") if Path(build_directory).is_dir(): shutil.rmtree(build_directory) os.makedirs(build_directory) @@ -121,6 +122,7 @@ class Exporter(ABC): return self._out_dir out_dir = os.path.join( user_documents_dir(), "jitenbot", "mdict", self._target.value) + print(f"Initializing output directory `{out_dir}`") if Path(out_dir).is_dir(): shutil.rmtree(out_dir) os.makedirs(out_dir) diff --git a/bot/yomichan/exporters/export.py b/bot/yomichan/exporters/export.py index 03e1b95..8665bfe 100644 --- a/bot/yomichan/exporters/export.py +++ b/bot/yomichan/exporters/export.py @@ -42,6 +42,7 @@ class Exporter(ABC): return self._build_dir cache_dir = user_cache_dir("jitenbot") build_directory = os.path.join(cache_dir, "yomichan_build") + print(f"Initializing build directory `{build_directory}`") if Path(build_directory).is_dir(): shutil.rmtree(build_directory) os.makedirs(build_directory)