def load_passphrase_from_file():
 vf_path = os.path.expanduser(kVFPassphraseFile)
 assert (os.access(vf_path, os.F_OK) and os.access(vf_path, os.R_OK)), ('%s must exist and be readable' % vf_path)
 with open(vf_path) as f:
  user_data = f.read()
 return user_data.strip('\n')

def load_passphrase_from_file ( ) : vf_path = os . path . expanduser ( kVFPassphraseFile ) assert ( os . access ( vf_path , os . F_OK ) and os . access ( vf_path , os . R_OK ) ) , ( '%s must exist and be readable' % vf_path ) with open ( vf_path ) as f : user_data = f . read ( ) return user_data . strip ( '\n' )
read the viewfinder passphrase from local file .