this prints the directory size, but how can i save the output to a python variable, instead of print. 

```
svn list -vR http://myIP/repos/test | awk '{sum+=$3; i++} END {print sum/1024000}'

```

but i need to store this print in a python variable;

```
proc = subprocess.Popen(svnproc, stdout=subprocess.PIPE, shell=True)
output = proc.stdout.read()
Print str(output)

```

nasty workaround is the push it out to a file and cat the file 

```
svn list -vR http://myIP/repos/test | awk '{sum+=$3; i++} END {> /tmp/output.txt}'

```