diff options
author | Aaron Bentley <abentley@panoramicfeedback.com> | 2006-07-19 10:14:03 -0400 |
---|---|---|
committer | Aaron Bentley <abentley@panoramicfeedback.com> | 2006-07-19 10:14:03 -0400 |
commit | 16acc74181767343289c729f668fb34d50212441 (patch) | |
tree | ba8708dd988804a2b622f6453c93f22139e15870 /libbe/rcs.py | |
parent | 906ef74e2e941794df5297b5622be58d8c352e50 (diff) | |
download | bugseverywhere-16acc74181767343289c729f668fb34d50212441.tar.gz |
Use subprocess-native functionality for changing directory
Diffstat (limited to 'libbe/rcs.py')
-rw-r--r-- | libbe/rcs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbe/rcs.py b/libbe/rcs.py index e7097aa..fddfeb6 100644 --- a/libbe/rcs.py +++ b/libbe/rcs.py @@ -44,8 +44,8 @@ class CommandError(Exception): self.err_str = err_str self.status = status -def invoke(args, expect=(0,)): - q = Popen(args, stdout=PIPE, stderr=PIPE) +def invoke(args, expect=(0,), cwd=None): + q = Popen(args, stdout=PIPE, stderr=PIPE, cwd=cwd) output, error = q.communicate() status = q.wait() if status not in expect: |