Ensure input file exists. Create output file (overwriting if necessary).
This commit is contained in:
parent
2533ba7fd3
commit
fb1f17e359
1 changed files with 5 additions and 3 deletions
8
scour.py
8
scour.py
|
|
@ -22,8 +22,6 @@
|
|||
|
||||
# TODOs:
|
||||
#
|
||||
# 3) Issue error if input.svg does not exist
|
||||
# 4) Create the output file (issue error if cannot create)
|
||||
# 5) Copy input file text to output file text
|
||||
# 6) Read input file into memory using an XML library
|
||||
# 7) Implement a function that will remove all unreferenced id attributes from
|
||||
|
|
@ -68,4 +66,8 @@ if( outfile == '' ):
|
|||
print 'Error! -o argument is missing'
|
||||
quit()
|
||||
|
||||
print 'infile=' + infile + ', outfile=' + outfile
|
||||
input = open(infile, 'r')
|
||||
output = open(outfile, 'w')
|
||||
|
||||
input.close()
|
||||
output.close()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue