Skip to content

Commit

Permalink
Fix recipe path
Browse files Browse the repository at this point in the history
  • Loading branch information
jleaniz committed Nov 14, 2024
1 parent 799f08b commit 66cc006
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions turbinia/lib/recipe_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 66cc006

Please sign in to comment.