enforced capitalized variables
parent
1545576d1e
commit
42e190b640
Binary file not shown.
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/python2
|
||||
|
||||
print """
|
||||
Variable Grabbler - version 3.2
|
||||
Variable Grabbler - version 3.3
|
||||
-------------------------------"""
|
||||
|
||||
# definitions
|
||||
|
@ -37,6 +37,6 @@ for variable in config_values:
|
|||
replacement = config_values[variable]
|
||||
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.write(file_content.decode('utf-8').replace("%" + variable.upper() + "%", replacement).encode('utf-8'))
|
||||
file_out.close()
|
||||
print "Done."
|
||||
|
|
Loading…
Reference in New Issue