about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-03-02 21:23:10 +0000
committerhut <hut@lavabit.com>2011-03-02 21:23:10 +0000
commit6f50857a20be9989398fdcd7b88ff2ce64d9f0b7 (patch)
tree90eb2f8ad2fb9e24b9a1fcef3e122320ffee1a92
parentc0337e68c464956903f29d1f93a4d8c9e7433a16 (diff)
downloadranger-6f50857a20be9989398fdcd7b88ff2ce64d9f0b7.tar.gz
added missing devnull variable definition, fixes last commit
-rw-r--r--ranger/core/runner.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ranger/core/runner.py b/ranger/core/runner.py
index fe8a0c25..7b8c5874 100644
--- a/ranger/core/runner.py
+++ b/ranger/core/runner.py
@@ -175,6 +175,7 @@ class Runner(object):
 			pipe_output = True
 			context.wait = False
 		if 's' in context.flags or 'd' in context.flags:
+			devnull = open(os.devnull, 'w')
 			for key in ('stdout', 'stderr'):
 				popen_kws[key] = devnull
 		if 'd' in context.flags: