From 86730507b9f5ff13bd66ee515db112086c4ae41b Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Wed, 8 Apr 2020 03:41:12 +0200 Subject: [PATCH] yeeeeeeee --- variable_grabbler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/variable_grabbler.py b/variable_grabbler.py index 3cf5bba..6854940 100644 --- a/variable_grabbler.py +++ b/variable_grabbler.py @@ -78,9 +78,9 @@ for variable in config_values: if replacement[i] == '?' and (i==0 or not replacement[i-1]=='\\'): argument_positions = argument_positions + [ i ] i = i+1 + replacement = replacement.replace("\\?", "?") print repr(replacement) print "DEBUG: " + str(argument_positions) - replacement = replacement.replace("\\?", "?") file_out = open(sys.argv[1], "w") file_out.write(file_content.decode('utf-8').replace("%" + variable.upper() + "%", replacement).encode('utf-8')) file_out.close()