import os.path if os.path.exists('jmeno souboru'): pass