I either did not understand this line/the ogs6py usage using ogs in a singularity container, or there might be a bug here.
As the code is checking, if singularity is installed, this line could be skipped and L490 could read:
if shutil.which("singularity") is None:
instead. At least, the current implementation does not work for me and I think the reason is given above.
https://github.com/joergbuchwald/ogs6py/blob/41d5424e565f16d3b47be6f85258fd5b64728cd1/ogs6py/ogs.py#L489
I either did not understand this line/the ogs6py usage using ogs in a singularity container, or there might be a bug here. As the code is checking, if singularity is installed, this line could be skipped and L490 could read:
if shutil.which("singularity") is None:
instead. At least, the current implementation does not work for me and I think the reason is given above.