Adding Debugging for conversion script, Reverting the conversion values for build.gsh
This commit is contained in:
parent
3c1b453b21
commit
f3107d5dcf
1 changed files with 2 additions and 0 deletions
|
|
@ -28,7 +28,9 @@ def main(argv):
|
|||
|
||||
with open(filetoconvert, 'x') as f:
|
||||
with open(filecopy) as c:
|
||||
print("Detected %s instances of %s pre-conversion"%(c.count(pattern),pattern))
|
||||
converted = c.read().replace(pattern, substitute)
|
||||
print("Confirmed %s instances of %s post-conversion"%s(converted.count(substitute),substitute))
|
||||
f.write(converted)
|
||||
|
||||
return 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue