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:
parent
9104769299
commit
4f39bea3a9
@ -27,14 +27,11 @@ class StaticSiteGenerator(object):
|
|||||||
instance_dir: the directory from which to read an instance format set of content
|
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
|
output_dir: the directory to write the generated static site to
|
||||||
"""
|
"""
|
||||||
self.instance_dir = instance_dir
|
self.instance_dir = os.path.abspath(instance_dir)
|
||||||
self.output_dir = output_dir
|
self.output_dir = os.path.abspath(output_dir)
|
||||||
|
|
||||||
instance_dir = os.path.abspath(instance_dir)
|
|
||||||
output_dir = os.path.abspath(output_dir)
|
|
||||||
|
|
||||||
# initialize configuration with the path to the instance
|
# initialize configuration with the path to the instance
|
||||||
init_instance(instance_dir, extra_config)
|
init_instance(self.instance_dir, extra_config)
|
||||||
|
|
||||||
def build(self):
|
def build(self):
|
||||||
"""Build the whole static site."""
|
"""Build the whole static site."""
|
||||||
|
Loading…
Reference in New Issue
Block a user