[GRASS-user] "Force" print at a special position in python script
Hamish
hamish_b at yahoo.com
Tue Apr 26 08:50:29 EDT 2011
Johannes wrote:
> I am using python for a script and at some places in the
> script
> I placed the print command like 'print "TEST"'.
> The problem is that the all the single steps in the script
> are executed before the variable is printed, meaning the
> result of print shown last and not at the place where I
> placed it in the script.
>
> Is that normal and how can I force that I get the output a
> the place where the print command is?
see http://stackoverflow.com/questions/230751/how-to-flush-output-of-python-print
Hamish
More information about the grass-user
mailing list