You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def combine_all_docx(filename_master,files_list):
number_of_sections=len(files_list)
master = Document_compose(filename_master)
composer = Composer(master)
for i in range(0, number_of_sections):
doc_temp = Document_compose(files_list[i])
composer.append(doc_temp)
composer.save("combined_file.docx")
combine_word_documents(files)
#For Example
filename_master="file1.docx"
files_list=["file2.docx","file3.docx","file4.docx",file5.docx"]
#Calling the function
combine_all_docx(filename_master,files_list)
In the debug mode, this is ok. but When I installer the program. i get this exception:
[Errno 2] No such file or directory: 'C:\\Users\\youName\\AppData\\Local\\Temp\\_MEI168082\\docxcompose\\templates\\custom.xml'
My virtual environment is anacanda3,and i find this file(custom.xml) in this location(F:\Anaconda3\Lib\site-packages\docxcompose\tempaltes\custom.xml), and i guess there were some problems when I installer .py, so program couldn't read the file.
How to solve it?
The text was updated successfully, but these errors were encountered:
I find this answer
stackoverflow
But In my situation:
when i use this function
In the debug mode, this is ok. but When I installer the program. i get this exception:
My virtual environment is anacanda3,and i find this file(custom.xml) in this location(F:\Anaconda3\Lib\site-packages\docxcompose\tempaltes\custom.xml), and i guess there were some problems when I installer .py, so program couldn't read the file.
How to solve it?
The text was updated successfully, but these errors were encountered: