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

renpy.exists

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)