fixed representation of string replacements

master
BodgeMaster 2020-03-05 10:35:53 +01:00
parent a386858546
commit da055d59c6
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/python2
print """
Variable Grabbler - version 3.1
Variable Grabbler - version 3.2
-------------------------------"""
# definitions
@ -35,7 +35,7 @@ for variable in config_values:
replacement = ""
else:
replacement = config_values[variable]
print "\"" + replacement + "\""
print repr(replacement)
file_out = open(sys.argv[1], "w")
file_out.write(file_content.decode('utf-8').replace("%" + variable + "%", replacement).encode('utf-8'))
file_out.close()