fixed representation of string replacements
parent
a386858546
commit
da055d59c6
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue