From: Frédéric Péters Date: Tue, 16 Jun 2020 07:54:32 +0000 (+0200) Subject: fix missing reference to new app settings X-Git-Tag: v2021~206 X-Git-Url: https://git.0d.be/?p=django-panik-nonstop.git;a=commitdiff_plain;h=8650f9e8115f5ed2e2c8915ee22a09b3307c1528 fix missing reference to new app settings --- diff --git a/nonstop/utils.py b/nonstop/utils.py index b474ac6..d59a65b 100644 --- a/nonstop/utils.py +++ b/nonstop/utils.py @@ -82,7 +82,7 @@ def add_soma_diffusion(diffusion): # copy file if not os.path.exists(app_settings.LOCAL_BASE_PATH): raise SomaException('soma directory is not available') - local_diffusion_path = os.path.join(LOCAL_BASE_PATH, diffusion_path) + local_diffusion_path = os.path.join(app_settings.LOCAL_BASE_PATH, diffusion_path) if os.path.exists(local_diffusion_path): for filename in os.listdir(local_diffusion_path): os.unlink(os.path.join(local_diffusion_path, filename))