Hi,

I am tryiing to open a file from my python project. The path to the file is given as .\Templates\html\temlate1.html. I used the file Alerter.py to open the above said file. Actually this source file and the Templates directory are existing in the same folder and on execution of the project it throws an error saying

[Errno 2] No such file or directory: '.\\Templates\\html\\template1.html'

but when I tried to open the same file from a single file in the same directory , its working fine. And if I tried it through my project ,it is working only when I am giving the full path.

CLet me know the reason & solution to this

Any help would be appreciated.

Thanks,
Sreejith

Might be your spelling, in one case you have it listed as
.\Templates\html\temlate1.html
the error shows
'.\Templates\html\template1.html'