def photo(f):
 filename = os.path.join(os.path.dirname(__file__), '..', f)
 assert os.path.exists(filename)
 return filename

def photo ( f ) : filename = os . path . join ( os . path . dirname ( __file__ ) , '..' , f ) assert os . path . exists ( filename ) return filename
helper function for photo file .