You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a really interesting project, but I'm wondering how to get more out of
it than just
interpreting some basic code.
How do I manually run code and get the standard output from the Python process?
Original issue reported on code.google.com by overv161@gmail.com on 26 Mar 2013 at 9:09
The text was updated successfully, but these errors were encountered:
Sorry, I meant how to do it from an APK. Say, I have some library written in
Python that takes input and produces output I want to display in my app, how
would I approach that?
Original comment by overv161@gmail.com on 26 Mar 2013 at 9:11
If possible, it would be even better if the process could be running for a
while and accept input at any time. That's because the library takes some time
to start up.
Original comment by overv161@gmail.com on 26 Mar 2013 at 9:13
Do you have example ?
Would smth like that fit ?
p = Popen(your_cmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=STDOUT)
(stdout, stderr) = p.communicate()
Original comment by anthony....@gmail.com on 26 Mar 2013 at 9:17
Original issue reported on code.google.com by
overv161@gmail.com
on 26 Mar 2013 at 9:09The text was updated successfully, but these errors were encountered: