Skip to content
Snippets Groups Projects
Commit c09557ac authored by Luis Salamanca's avatar Luis Salamanca
Browse files

When pdf2xml from nonexisting 02_extracted

parent 2ef0526d
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
...@@ -104,7 +104,10 @@ class Document: ...@@ -104,7 +104,10 @@ class Document:
#print(command) #print(command)
utils_proc.call_with_out(command) utils_proc.call_with_out(command)
self.name_xml = [name_tar, name_xml] self.name_xml = [name_tar, name_xml]
h_xml = utils_proc.get_handlerfile(self.name_xml[1], self.folder_database, name_file = name_outxml) if flag_save:
h_xml = utils_proc.get_handlerfile(self.name_xml[1], self.folder_database, name_file = name_outxml)
else:
h_xml = name_xml
self.name_outxml = name_outxml self.name_outxml = name_outxml
XML_tree = ET.parse(h_xml) XML_tree = ET.parse(h_xml)
self.XML_main = XML_tree.getroot() self.XML_main = XML_tree.getroot()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment