I have a code to convert (.doc) to HTML file. The code is:
import mammoth
f=open("c: ......\\demo.docx","rb")
b=open("ABC.html","wb")
document=mammoth.convert_to_html(f)
b.write(document.value.encode('utf8'))
Now ABC.html
will be created. Instead, I need that HTML document to be converted with same name as docx file.