How can one obatin from a directory(copied from address bar on top) and a file's name A.txt the path to the file and pas it to the function ?
I do both os.path.join(directory ,filename) and directory + "\\" + filename yet I get this error :
in <genexpr>
if any(err in args[0] for err in ['[OK]', 'Correct']):
TypeError: argument of type 'NoneType' is not iterable
I do both os.path.join(directory ,filename) and directory + "\\" + filename yet I get this error :
in <genexpr>
if any(err in args[0] for err in ['[OK]', 'Correct']):
TypeError: argument of type 'NoneType' is not iterable