forked from root/threadr.lostcave.ddnss.de
fixed representation of string replacements
parent
a386858546
commit
da055d59c6
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/python2
|
#!/usr/bin/python2
|
||||||
|
|
||||||
print """
|
print """
|
||||||
Variable Grabbler - version 3.1
|
Variable Grabbler - version 3.2
|
||||||
-------------------------------"""
|
-------------------------------"""
|
||||||
|
|
||||||
# definitions
|
# definitions
|
||||||
|
@ -35,7 +35,7 @@ for variable in config_values:
|
||||||
replacement = ""
|
replacement = ""
|
||||||
else:
|
else:
|
||||||
replacement = config_values[variable]
|
replacement = config_values[variable]
|
||||||
print "\"" + replacement + "\""
|
print repr(replacement)
|
||||||
file_out = open(sys.argv[1], "w")
|
file_out = open(sys.argv[1], "w")
|
||||||
file_out.write(file_content.decode('utf-8').replace("%" + variable + "%", replacement).encode('utf-8'))
|
file_out.write(file_content.decode('utf-8').replace("%" + variable + "%", replacement).encode('utf-8'))
|
||||||
file_out.close()
|
file_out.close()
|
||||||
|
|
Loading…
Reference in New Issue