Skip to content

Commit

Permalink
fix for when args.path is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
michxymi committed Nov 14, 2023
1 parent e2f40df commit cf7a488
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/commands/cci/cmd_export_all_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def export_all_versions(conan_api, parser, *args):
folders_to_export = item[recipe_name][0]['folders'] if isinstance(item, dict) else None
out.verbose(f"Processing recipe '{recipe_name}'")

recipe_folder = os.path.join(args.path, recipe_name)
recipe_folder = os.path.join(args.path, recipe_name) if args.path is not None else os.path.join(f"{os.getcwd()}/recipes", recipe_name)
if not os.path.isdir(recipe_folder):
raise ConanException(f"Invalid user input: '{recipe_name}' does not exist or is not a dir")

Expand Down

0 comments on commit cf7a488

Please sign in to comment.