I have to call this many times:
MyScript.py --top='?_0.png'
where the 0 should be replaced with 0, 1, 2, 3, etc
I tried this:
for i in {0..3}; do
echo MyScript.py --top="'?_${i}.png'";
MyScript.py --top="'?_${i}.png'";
done;
It seems to make the command look correct (ie the single quotes are around the filename and the i is expanded properly), but python does not interpret it the same way as if I run the first command on the command line directly.
Any idea why this would be?
Thanks,
Dave