Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1868

return values from @python

$
0
0
What techniques are available to return values from %@python[] to TCC ?
I have been exploring some straightforward ways, but I can't see how to get something out of @python except for console output. Note that I am not using the supported ActivePython but another distribution, so my issue could be all there. Anyways, this is what I tried:
  1. Capture standard output: set x=%@python[print 1+1] >out
    This sets x=0 (python's exit code?), creates an empty out file and prints 2 to the console...

Read more

Viewing all articles
Browse latest Browse all 1868

Trending Articles