moved a print statement
parent
ffd284e7dc
commit
3ae5e5796e
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/python2
|
#!/usr/bin/python2
|
||||||
|
|
||||||
print """
|
print """
|
||||||
Variable Grabbler - version 4.0_pre1
|
Variable Grabbler - version 4.0_pre2
|
||||||
------------------------------------"""
|
------------------------------------"""
|
||||||
################################################################
|
################################################################
|
||||||
# Changes in this version:
|
# Changes in this version:
|
||||||
|
@ -71,7 +71,6 @@ for variable in config_values:
|
||||||
print "was not found in the file. Skipping command execution."
|
print "was not found in the file. Skipping command execution."
|
||||||
else:
|
else:
|
||||||
replacement = str(config_values[variable])
|
replacement = str(config_values[variable])
|
||||||
print repr(replacement)
|
|
||||||
# look for variable sections that contain question marks
|
# look for variable sections that contain question marks
|
||||||
argument_positions = []
|
argument_positions = []
|
||||||
i = 0
|
i = 0
|
||||||
|
@ -79,6 +78,7 @@ for variable in config_values:
|
||||||
if replacement[i] == '?' and (i==0 or not replacement[i-1]=='\\'):
|
if replacement[i] == '?' and (i==0 or not replacement[i-1]=='\\'):
|
||||||
argument_positions = argument_positions + [ i ]
|
argument_positions = argument_positions + [ i ]
|
||||||
i = i+1
|
i = i+1
|
||||||
|
print repr(replacement)
|
||||||
print "DEBUG: " + str(argument_positions)
|
print "DEBUG: " + str(argument_positions)
|
||||||
replacement = replacement.replace("\\?", "?")
|
replacement = replacement.replace("\\?", "?")
|
||||||
file_out = open(sys.argv[1], "w")
|
file_out = open(sys.argv[1], "w")
|
||||||
|
|
Loading…
Reference in New Issue