renpy/doc/reference/functions/renpy.exists
From Ren'Py Visual Novel Engine
renpy.exists
| Function: | renpy.exists | (filename): |
Returns true if the given filename can be found in the searchpath. This only works if a physical file exists on disk. It won't find the file if it's inside of an archive.
Example
if renpy.exists("secret_ending_screen.jpg"): "There's a secret ending image in the filesystem." "I wonder how that got there... It's probably a secret."
