From 67cd70621b7dca679cd930de66d883e0610a1427 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 15 Dec 2018 21:47:26 +0100 Subject: builds :) --- megapixels/app/builder/builder.py | 2 +- megapixels/app/settings/app_cfg.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'megapixels') diff --git a/megapixels/app/builder/builder.py b/megapixels/app/builder/builder.py index cb5d8fe9..df609f60 100644 --- a/megapixels/app/builder/builder.py +++ b/megapixels/app/builder/builder.py @@ -74,7 +74,7 @@ def build_research_index(research_posts): research_posts=research_posts, latest_research_post=research_posts[-1], ) - output_fn = public_path + '/research/index.html' + output_fn = cfg.DIR_SITE_PUBLIC + '/research/index.html' with open(output_fn, "w") as file: file.write(html) diff --git a/megapixels/app/settings/app_cfg.py b/megapixels/app/settings/app_cfg.py index 9e03357b..f861700c 100644 --- a/megapixels/app/settings/app_cfg.py +++ b/megapixels/app/settings/app_cfg.py @@ -61,8 +61,8 @@ DIR_TEST_IMAGES = join(DIR_APP, 'test', 'images') # .env config for keys # ----------------------------------------------------------------------------- -DIR_DOTENV = join(DIR_APP, '.env') -load_dotenv(dotenv_path=DIR_DOTENV) +# DIR_DOTENV = join(DIR_APP, '.env') +load_dotenv() # dotenv_path=DIR_DOTENV) # ----------------------------------------------------------------------------- # Drawing, GUI settings -- cgit v1.2.3-70-g09d2