View Single Post
  #2  
Old 09-27-2011, 10:58 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You can use the os.path.isfile command to check for file existence.
Code:
import os
if os.path.isfile('foo.txt'):
    print 'File exists'
Reply With Quote