Read values out of a config file instead of hardcoding them. Further streamline common tasks in a new base config class.

This commit is contained in:
yrriban 2025-05-17 11:50:59 -04:00
parent 606f27185c
commit 057ac98843
11 changed files with 83 additions and 69 deletions

View file

@ -23,7 +23,7 @@ class Thumb(dcc.doom_base.WadMap):
bi.composite(mdi, gravity="north_west")
if parsed_args.index:
with wand.image.Image(filename=dcc.config.OUTPUT.joinpath("doomed_index.png")) as di:
with wand.image.Image(filename=self.output.joinpath("doomed_index.png")) as di:
di.border(tc, 1, 1)
bi.composite(di, gravity="north_east")