When formatting a string, my string may contain a modulo "%" that I do not wish to have converted. I can escape the string and change each "%" to "%%" ...
I want to do the following
"@file %(unitname).C" % {'unitname':'Test'}
I am not trying to do anything fancy here. I am trying to automate plotting some experiment data in the following script:
print "processing: ", filename gnuplot = Popen(gnuplot_bin,stdin = PIPE).stdin if state_plot: ...
Here is the String:
'''This is a test { <-- escape these ---> } '''
{
}