1 | initial version |
The correct way to format file paths to allow access to scripts located within a Singularity image from a script outside the image is to use the Singularity URI format. This format is as follows:
singularity://<path_to_file_within_image>
For example, if you want to access a script called "myscript.sh" located in the root directory of your Singularity image "myimage.sif", you would use the following path:
singularity:///myscript.sh
This format specifies that you are accessing a file within a Singularity image, and the triple forward slashes indicate that you are accessing the root directory of the image.