From 66cc006356f93be20ef503770dfc00d949695f1c Mon Sep 17 00:00:00 2001 From: jleaniz Date: Thu, 14 Nov 2024 15:06:32 +0000 Subject: [PATCH] Fix recipe path --- turbinia/lib/recipe_helpers.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/turbinia/lib/recipe_helpers.py b/turbinia/lib/recipe_helpers.py index c14cdc3e1..4f20b37f8 100644 --- a/turbinia/lib/recipe_helpers.py +++ b/turbinia/lib/recipe_helpers.py @@ -215,9 +215,7 @@ def get_recipe_path_from_name(recipe_name): if hasattr(config, 'RECIPE_FILE_DIR') and config.RECIPE_FILE_DIR: recipe_path = os.path.join(config.RECIPE_FILE_DIR, recipe_name) else: - recipe_path = os.path.realpath(__file__) - recipe_path = os.path.dirname(recipe_path) - recipe_path = os.path.join(recipe_path, 'config', 'recipes') - recipe_path = os.path.join(recipe_path, recipe_name) - + recipe_path = os.path.join(os.path.dirname(__file__), '..') + recipe_path = os.path.join(recipe_path, 'config', 'recipes', recipe_name) + recipe_path = os.path.abspath(recipe_path) return recipe_path