Mercurial > hg > clwapp
comparison clwapp/utils.py @ 0:196f241286f7
initial import of clwapp, from https://svn.openplans.org/svn/standalone/clwapp/trunk/
author | k0s <k0scist@gmail.com> |
---|---|
date | Sun, 01 Nov 2009 18:24:35 -0500 |
parents | |
children | a0816f433861 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:196f241286f7 |
---|---|
1 import subprocess | |
2 | |
3 def shargs(args): | |
4 process = subprocess.Popen('for arg in %s; do echo $arg; done' % args, | |
5 shell=True, stdout=subprocess.PIPE) | |
6 output = process.communicate()[0] | |
7 output = output[:-1] # last line will be blank | |
8 return output.split('\n') |