The easiest way to do this is with
import osif os.path.exists(FILE): # file exists passelse: # file does not exists pass
from the os library, while FILE is the relative path. In Windows this may or many not work and you may have to use the absolution path by doing os.path.exists(os.path.join(os.path.abspath('./'), FILE))
, where FILE is still the relative path plus file name