mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/cqpserver.git
synced 2024-12-25 11:04:18 +00:00
Remove unused files.
This commit is contained in:
parent
bdab8d2e82
commit
116556bc08
@ -1,16 +0,0 @@
|
||||
import argparse
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('-i', dest='input_file', required=True)
|
||||
parser.add_argument('--author', dest='author', required=True)
|
||||
parser.add_argument('--publishing_year', dest='publishing_year', required=True)
|
||||
parser.add_argument('--title', dest='title', required=True)
|
||||
args = parser.parse_args()
|
||||
|
||||
element_tree = ET.parse(args.input_file)
|
||||
text_node = element_tree.find('text')
|
||||
text_node.set('author', args.author)
|
||||
text_node.set('publishing_year', args.publishing_year)
|
||||
text_node.set('title', args.title)
|
||||
element_tree.write(args.input_file)
|
Loading…
Reference in New Issue
Block a user