forked from root/threadr.lostcave.ddnss.de
losing my mind
parent
60ca426039
commit
e5b295f03e
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue