This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
# -*- coding: UTF-8 -*-
#!/usr/bin/env python
import os, sys
from package import search
def ScanRecoverFile():
ScanResult =[]
if os.path.exists('./recovers.txt'):
with open('./recovers.txt') as f:
ScanResult =f.read().split("\n")
else:
print("Файла со список рекомедации нейдлено")
res = GenRecoversFun(ScanResult)
return res
def GenRecoversFun(Reclist):
result =[]
for r in Reclist:
result.append(search(r))
return result
if __name__ == '__main__':
ScanRecoverFile()