My project structure looks like
flask-appengine-template/
docs/
licenses/
src/
application/
static/
templates/
models.py
settings.py
urls.py
views.py
english.txt
libs/
bs4/
app.yaml
src.py
in my views.py
, I have a function that reads the file english.txt
for words in open('english.txt', 'r').readlines():
stopwords.append(words.strip())
When I run this on local environment
, I see error in logs as
(<type 'exceptions.IOError'>, IOError(13, 'file not accessible'), <traceback object at 0x10c457560>)
How do I read this file in Google App Engine?