You can os.listdir('.') to see if the file is in the Current Working Directory.