Adding Debugging for conversion script, Reverting the conversion values for build.gsh

This commit is contained in:
georgelinsdell 2017-12-20 15:35:58 +00:00
commit f3107d5dcf

View file

@ -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