0

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

2
Contributors
1
Reply
2
Views
9 Years
Discussion Span
Last Post by vegaseat
0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.