From e45a88a9400def0eeffd63d72ac3d90714c054b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81s=20Gonza=CC=81lez?= Date: Tue, 13 Oct 2020 16:43:39 -0300 Subject: [PATCH] Use variables for certificate sass dir --- pavelib/assets.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pavelib/assets.py b/pavelib/assets.py index 3ec86a84d0..4014c4f2a2 100644 --- a/pavelib/assets.py +++ b/pavelib/assets.py @@ -167,6 +167,8 @@ def get_theme_sass_dirs(system, theme_dir): system_sass_dir = path(system) / "static" / "sass" sass_dir = theme_dir / system / "static" / "sass" css_dir = theme_dir / system / "static" / "css" + certs_sass_dir = theme_dir / system / "static" / "certificates" / "sass" + certs_css_dir = theme_dir / system / "static" / "certificates" / "css" dependencies = SASS_LOOKUP_DEPENDENCIES.get(system, []) if sass_dir.isdir(): @@ -197,8 +199,8 @@ def get_theme_sass_dirs(system, theme_dir): # now compile theme sass files for certificate if system == 'lms': dirs.append({ - "sass_source_dir": theme_dir / system / "static" / "certificates" / "sass", - "css_destination_dir": theme_dir / system / "static" / "certificates" / "css", + "sass_source_dir": certs_sass_dir, + "css_destination_dir": certs_css_dir, "lookup_paths": [ sass_dir / "partials", sass_dir