Reference Manual: (offline | online) Quickstart: (offline | online)

# 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."

Reference Manual: (offline | online) Quickstart: (offline | online)