diff options
Diffstat (limited to 'lvc')
-rw-r--r-- | lvc/execute.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lvc/execute.py b/lvc/execute.py index af6f463..63ada38 100644 --- a/lvc/execute.py +++ b/lvc/execute.py @@ -1,6 +1,6 @@ """execute.py -- Run executable programs. -lvc.execute wraps the standard subprocess module in for MVC. +lvc.execute wraps the standard subprocess module in for LVC. """ import os @@ -9,6 +9,7 @@ import sys CalledProcessError = subprocess.CalledProcessError + def default_popen_args(): retval = { 'stdin': open(os.devnull, 'rb'), @@ -20,8 +21,9 @@ def default_popen_args(): retval['startupinfo'].dwFlags |= subprocess.STARTF_USESHOWWINDOW return retval + class Popen(subprocess.Popen): - """subprocess.Popen subclass that adds MVC default behavior. + """subprocess.Popen subclass that adds LVC default behavior. By default we: - Use a /dev/null equivilent for stdin @@ -37,6 +39,7 @@ class Popen(subprocess.Popen): final_args.update(kwargs) subprocess.Popen.__init__(self, commandline, **final_args) + def check_output(commandline, **kwargs): """MVC version of subprocess.check_output. |