python3 subprocess delivers no output

I have the following problem. In a groovy prog I start a python program that starts a subprocess. The output of this subprocess will be read into a variable. (os is ubuntu)

git = subprocess.Popen(args, stdout = subprocess.PIPE, env=environ)
data =; 

But the variable is always empty and I have no idea why.
(Starting the Python within a shell it works)

Source: python

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.