mirror of
https://github.com/greflm13/StaticGalleryBuilder.git
synced 2026-02-05 02:59:27 +00:00
move thumbdir declare
This commit is contained in:
@@ -171,6 +171,7 @@ def main(args) -> None:
|
|||||||
thumbnails: list[tuple[str, str, str]] = []
|
thumbnails: list[tuple[str, str, str]] = []
|
||||||
|
|
||||||
args, raw = init_globals(args, RAW_EXTENSIONS)
|
args, raw = init_globals(args, RAW_EXTENSIONS)
|
||||||
|
thumbdir = os.path.join(args.root_directory, ".thumbnails")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
Path(LOCKFILE).touch()
|
Path(LOCKFILE).touch()
|
||||||
@@ -195,7 +196,6 @@ def main(args) -> None:
|
|||||||
logger.warning("reread metadata flag is set to true, all image metadata will be reread")
|
logger.warning("reread metadata flag is set to true, all image metadata will be reread")
|
||||||
if args.regenerate_thumbnails:
|
if args.regenerate_thumbnails:
|
||||||
logger.warning("regenerate thumbnails flag is set to true, all thumbnails will be regenerated")
|
logger.warning("regenerate thumbnails flag is set to true, all thumbnails will be regenerated")
|
||||||
thumbdir = os.path.join(args.root_directory, ".thumbnails")
|
|
||||||
if os.path.exists(thumbdir):
|
if os.path.exists(thumbdir):
|
||||||
logger.info("removing old thumbnails folder")
|
logger.info("removing old thumbnails folder")
|
||||||
shutil.rmtree(thumbdir)
|
shutil.rmtree(thumbdir)
|
||||||
|
|||||||
Reference in New Issue
Block a user