enforced capitalized variables

master
BodgeMaster 2020-03-07 19:46:34 +01:00
parent 1545576d1e
commit 42e190b640
2 changed files with 2 additions and 2 deletions

BIN
.mailboxerer.sh.swp Normal file

Binary file not shown.

View File

@ -1,7 +1,7 @@
#!/usr/bin/python2 #!/usr/bin/python2
print """ print """
Variable Grabbler - version 3.2 Variable Grabbler - version 3.3
-------------------------------""" -------------------------------"""
# definitions # definitions
@ -37,6 +37,6 @@ for variable in config_values:
replacement = config_values[variable] replacement = config_values[variable]
print repr(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.upper() + "%", replacement).encode('utf-8'))
file_out.close() file_out.close()
print "Done." print "Done."