From 78a74af9692c537aa29d55db9d51d6881662d217 Mon Sep 17 00:00:00 2001 From: Carlo Ferrigno Date: Wed, 17 Jan 2024 17:21:28 +0100 Subject: [PATCH] add test on sextractor's share folder --- mosaic/treat.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mosaic/treat.py b/mosaic/treat.py index 4535f2e..a71af31 100644 --- a/mosaic/treat.py +++ b/mosaic/treat.py @@ -26,6 +26,10 @@ # TODO: find the config sextractor_share = "/usr/local/share/sextractor" +if not os.path.isdir(sextractor_share): + sextractor_share = "/opt/conda/share/sextractor/" + if not os.path.isdir(sextractor_share): + raise Exception('No sextractor share available') def render(*args): logger.info('%s', *args)