From cd80d227eec4cc4bbde7619aa1bb55b7aac7e390 Mon Sep 17 00:00:00 2001 From: Jeremy Hooke Date: Thu, 19 May 2022 10:42:44 +1000 Subject: [PATCH] Fix test for nullable base directories --- eodatasets3/prepare/sentinel_l1_prepare.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eodatasets3/prepare/sentinel_l1_prepare.py b/eodatasets3/prepare/sentinel_l1_prepare.py index b02ab1d1..ee7fe531 100644 --- a/eodatasets3/prepare/sentinel_l1_prepare.py +++ b/eodatasets3/prepare/sentinel_l1_prepare.py @@ -528,7 +528,8 @@ def main( dry_run: bool, index_to_odc: bool, ): - output_base = normalise_path(output_base) + output_base = normalise_path(output_base) if output_base else None + if sys.argv[1] == "sentinel-l1c": warnings.warn( "Command name 'sentinel-l1c-prepare' is deprecated: remove the 'c', and use `sentinel-l1-prepare`"