Python open () дает IOError: Errno 2 Нет такого файла или каталога
По какой-то причине у моего кода возникают проблемы при открытии простого файла:
Это код:
file1 = open('recentlyUpdated.yaml')
И ошибка:
IOError: [Errno 2] No such file or directory: 'recentlyUpdated.yaml'
Naturally I checked that this is the correct name of the file.
I have tried moving around the file, giving open()
the full path to the file and none of it seems to work.