I'm using subprocess.call('python simpletest.py',shell=True)
and it prints data to terminal so i want to catch this data, but i don't know how, nothing works. :(
Asked
Active
Viewed 54 times
0

Pjury
- 31
- 5
-
3You might want to reconsider your approach if you are using `subprocess` within python to invoke.... python. – Z4-tier Feb 21 '20 at 01:26
-
1If the external module you are calling is another Python script, then just import it and call the functions directly. – Gino Mempin Feb 21 '20 at 01:52
-
Another related post: [Get output of python script from within python script](https://stackoverflow.com/q/6086047/2745495) – Gino Mempin Feb 21 '20 at 01:54