Simple question, I would like to append text to the front of every print I call, for example if I set the text to hello and ran this:
print 'hello there'
print ' hi again'
It would print this:
hellohello there
hello hi again
Is there any way of doing this, without using a function to use that instead of print?
You could override print as per DevPlayer’s post here on StackOverflow, slightly modified here:
[Edit] …or as DSM suggests, you could avoid the sys call with this: