forked from root/threadr.lostcave.ddnss.de
yeeeeeeee
parent
3ae5e5796e
commit
86730507b9
|
@ -78,9 +78,9 @@ for variable in config_values:
|
||||||
if replacement[i] == '?' and (i==0 or not replacement[i-1]=='\\'):
|
if replacement[i] == '?' and (i==0 or not replacement[i-1]=='\\'):
|
||||||
argument_positions = argument_positions + [ i ]
|
argument_positions = argument_positions + [ i ]
|
||||||
i = i+1
|
i = i+1
|
||||||
|
replacement = replacement.replace("\\?", "?")
|
||||||
print repr(replacement)
|
print repr(replacement)
|
||||||
print "DEBUG: " + str(argument_positions)
|
print "DEBUG: " + str(argument_positions)
|
||||||
replacement = replacement.replace("\\?", "?")
|
|
||||||
file_out = open(sys.argv[1], "w")
|
file_out = open(sys.argv[1], "w")
|
||||||
file_out.write(file_content.decode('utf-8').replace("%" + variable.upper() + "%", replacement).encode('utf-8'))
|
file_out.write(file_content.decode('utf-8').replace("%" + variable.upper() + "%", replacement).encode('utf-8'))
|
||||||
file_out.close()
|
file_out.close()
|
||||||
|
|
Loading…
Reference in New Issue