Forums

python class not able to find docx file in the same folder

I am working with docx-mailmerge, but my flask application is not able to find the .docx file in the same module as the python class...I have tried putting in the root folder, it's still giving the same error. I have tried the same application locally on my pc...it's working perfectly. Can somebody help.

How are you specifying the filename for the .docx file? Are you using an absolute path (like "/home/prashant123singh/something/document.docx") or a relative path (like "document.docx")?