fix up the object attributes for in/out dirs in the generator

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
Brian S. Stephan 2025-03-17 10:39:18 -05:00
parent 9104769299
commit 4f39bea3a9
Signed by: bss
GPG Key ID: 3DE06D3180895FCB

View File

@ -27,14 +27,11 @@ class StaticSiteGenerator(object):
instance_dir: the directory from which to read an instance format set of content
output_dir: the directory to write the generated static site to
"""
self.instance_dir = instance_dir
self.output_dir = output_dir
instance_dir = os.path.abspath(instance_dir)
output_dir = os.path.abspath(output_dir)
self.instance_dir = os.path.abspath(instance_dir)
self.output_dir = os.path.abspath(output_dir)
# initialize configuration with the path to the instance
init_instance(instance_dir, extra_config)
init_instance(self.instance_dir, extra_config)
def build(self):
"""Build the whole static site."""