Hi;<br>I have the following line of code:<br><br>exec('%s()' % table)<br><br>where 'table' is a variable in a for loop that calls variables from another script. I've made it so that it only calls one variable. I know for a fact that it's calling that variable in the script because it found errors in that script. I've tried to have it return the following:<br>
<br>print 'hi'<br>return 'hi'<br><br>It doesn't return anything. No errors are thrown because the code evaluates. I don't know how to capture the output. I would like to do something like:<br><br>print exec(...)<br>
<br>or<br><br>var = exec(...)<br><br>but of course those options don't work. Suggestions?<br>TIA,<br>Victor<br>