losing my mind

master
BodgeMaster 2020-04-08 03:54:57 +02:00
parent 60ca426039
commit e5b295f03e
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ for variable in config_values:
replacement = replacement.replace("\\?", "?") replacement = replacement.replace("\\?", "?")
print repr(replacement) print repr(replacement)
# actually replace variables # actually replace variables
file_content = file_content.decode('utf-8').replace("%" + variable.upper() + "%", replacement).encode('utf-8') file_content = file_content.decode('utf-8').replace("%" + variable.upper() + "%", replacement).encode('utf-8')
print "Saving new file..." print "Saving new file..."
file_out = open(sys.argv[1], "w") file_out = open(sys.argv[1], "w")