Fixed template dir being relative
This commit is contained in:
parent
2bad7f2cb3
commit
7c14b3a312
|
@ -47,13 +47,15 @@ def main():
|
|||
output_dir = os.path.abspath(sys.argv[1])
|
||||
|
||||
|
||||
|
||||
if not os.path.exists(output_dir):
|
||||
os.mkdir(output_dir)
|
||||
|
||||
static_dir = os.path.join(BASE_DIR, STATIC_FILES_DIR)
|
||||
copy_dir(static_dir, output_dir)
|
||||
|
||||
jinja_env = Environment(loader=FileSystemLoader(TEMPLATE_DIR))
|
||||
template_dir = os.path.join(BASE_DIR, TEMPLATE_DIR)
|
||||
jinja_env = Environment(loader=FileSystemLoader(template_dir))
|
||||
generate_index(jinja_env, output_dir)
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in New Issue