From 7c73c86a01b4a7c6c2ac0004e21087c3bd3ae101 Mon Sep 17 00:00:00 2001 From: hulkoba Date: Thu, 23 May 2024 12:43:59 +0200 Subject: [PATCH] parse to string --- conda_smithy/lint_recipe.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/conda_smithy/lint_recipe.py b/conda_smithy/lint_recipe.py index 2a411f8fc..c9424161c 100644 --- a/conda_smithy/lint_recipe.py +++ b/conda_smithy/lint_recipe.py @@ -136,13 +136,13 @@ def find_local_config_file(recipe_dir, filename): # 2. staged-recipes with custom conda-forge.yaml in recipe # 3. staged-recipes found_filesname = ( - glob(Path(recipe_dir) / filename) - or glob( + glob(str(Path(recipe_dir) / filename)) + or glob(str( Path(recipe_dir).parent / filename, - ) - or glob( + )) + or glob(str( Path(recipe_dir).parent.parent / filename, - ) + )) ) return found_filesname[0] if found_filesname else None