From e045b106c7239263c020c568ae744fd5efc7d255 Mon Sep 17 00:00:00 2001 From: Brian Mesick Date: Thu, 2 Nov 2023 10:02:41 -0400 Subject: [PATCH] fix: Change translations source path This path change got missed in the assets refactor. --- README.rst | 2 +- scripts/translate_utils.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 54d049b7c..227d4ac38 100644 --- a/README.rst +++ b/README.rst @@ -120,7 +120,7 @@ Contributing Charts and Dashboards to Aspects ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The Superset assets provided by Aspects can be found in the templated -`tutoraspects/templates/openedx-assets/assets` directory. For the most part, +`tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/` directory. For the most part, these files are what Superset exports, but with some crucial differences which make these assets usable across all Tutor deployments. diff --git a/scripts/translate_utils.py b/scripts/translate_utils.py index b1c62ea11..fad936ada 100644 --- a/scripts/translate_utils.py +++ b/scripts/translate_utils.py @@ -11,7 +11,11 @@ def get_text_for_translations(root_path): assets_path = ( - os.path.join(root_path, "tutoraspects/templates/openedx-assets/assets/") + os.path.join( + root_path, + "tutoraspects/templates/aspects/build/aspects-superset/" + "openedx-assets/assets/" + ) ) print(f"Assets path: {assets_path}")