From 42e190b6408fe31543174374f12e669ae2b73c78 Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Sat, 7 Mar 2020 19:46:34 +0100 Subject: [PATCH] enforced capitalized variables --- .mailboxerer.sh.swp | Bin 0 -> 1024 bytes variable_grabbler.py | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 .mailboxerer.sh.swp diff --git a/.mailboxerer.sh.swp b/.mailboxerer.sh.swp new file mode 100644 index 0000000000000000000000000000000000000000..266429e77d5f7323f404d9b93d4861f22ecaf5b6 GIT binary patch literal 1024 zcmYc?$V<%2S1{7E)H7y40xz`~7!p%*GxIWwONtUp@{5q<(3xI|dBslo73jhkeEp34 z+*ExOQ}u(BGm26(lS(p+lQZ;P^GeDyle2S5^V0RpQ!FpM4*7!85Z5Fi`^q3B8gaqlVc literal 0 HcmV?d00001 diff --git a/variable_grabbler.py b/variable_grabbler.py index 4404075..2c69b9c 100644 --- a/variable_grabbler.py +++ b/variable_grabbler.py @@ -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."