From 3591d52a94b4bece66fed8d954129f6f3eff38a0 Mon Sep 17 00:00:00 2001 From: Erik Moeller Date: Mon, 25 Sep 2023 21:22:17 -0400 Subject: [PATCH] Look in project root if requirements/ path does not exist --- scripts/update-requirements | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/update-requirements b/scripts/update-requirements index 9bf4de76..3c75b83e 100755 --- a/scripts/update-requirements +++ b/scripts/update-requirements @@ -66,6 +66,10 @@ def main(): verify_sha256sums_file(project) + # If there is no 'requirements' directory, we look in the project root + if not (pkg_dir / args.requirements).exists(): + args.requirements = "" + build_requirements_file = pkg_dir / args.requirements / "build-requirements.txt" shasums_file = project / "sha256sums.txt"