From c6003cca229b0342ff5b4aa9b04b7f76f971a07b Mon Sep 17 00:00:00 2001 From: Javier Gonel Date: Thu, 14 Nov 2013 18:18:01 +0200 Subject: [PATCH] Use THEME_STATIC_DIR instead of hardcoded 'theme' The output folder for the theme can be changed via `THEME_STATIC_DIR` setting. But the assets plugin uses the harcoded `theme` string. This small patch makes the asset plugin use the setting. --- assets/assets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/assets.py b/assets/assets.py index 71b2ba2..16723dd 100644 --- a/assets/assets.py +++ b/assets/assets.py @@ -39,7 +39,8 @@ def create_assets_env(generator): """Define the assets environment and pass it to the generator.""" assets_url = 'theme/' - assets_src = os.path.join(generator.output_path, 'theme') + theme_static_dir = generator.settings['THEME_STATIC_DIR'] + assets_src = os.path.join(generator.output_path, theme_static_dir) generator.env.assets_environment = Environment(assets_src, assets_url) if 'ASSET_CONFIG' in generator.settings: