Skip to content
Snippets Groups Projects
Commit 86d38a57 authored by Elke Kreim's avatar Elke Kreim
Browse files

Fix buildassets for project without assets directory

parent 996b6739
Branches
Tags v2.1.1
No related merge requests found
...@@ -253,7 +253,7 @@ def build_css_from_scss(app_name): ...@@ -253,7 +253,7 @@ def build_css_from_scss(app_name):
sass_source = get_init_scss_path(app_name) sass_source = get_init_scss_path(app_name)
# if no path to a sass file exists in projekt take the default sass file of 'hshassets' # if no path to a sass file exists in projekt take the default sass file of 'hshassets'
if not os.path.isfile(sass_source) and app_name is get_projectname(): if not os.path.isfile(sass_source) and app_name == get_projectname():
sass_source = get_default_scss_path() sass_source = get_default_scss_path()
if os.path.isfile(sass_source): if os.path.isfile(sass_source):
...@@ -435,8 +435,9 @@ def build_assets(): ...@@ -435,8 +435,9 @@ def build_assets():
# PROJECT # PROJECT
project_name = get_projectname() project_name = get_projectname()
apps = get_installed_apps_with_asset_directory(include_project=True) apps = get_installed_apps_with_asset_directory(include_project=True)
if project_name not in apps: if project_name not in apps:
apps.append(project_name) build_app_css_from_scss(project_name)
for app_name in apps: for app_name in apps:
copy_assets_dirs_to_static(app_name) copy_assets_dirs_to_static(app_name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment