Skip to content

Commit

Permalink
add test on sextractor's share folder
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrigno committed Jan 17, 2024
1 parent 9dbaf85 commit 78a74af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mosaic/treat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 78a74af

Please sign in to comment.