summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-12-23 21:39:20 +0000
committerJeremy Katz <katzj@redhat.com>2003-12-23 21:39:20 +0000
commit4916cd951ca901134f421012a3faa38cc27f83aa (patch)
tree34ba0b16b55f82168a2396852c1f6b570c191b61 /iutil.py
parent82d6c64935fcb837e34ed22460d2157dbeb897e3 (diff)
downloadanaconda-4916cd951ca901134f421012a3faa38cc27f83aa.tar.gz
anaconda-4916cd951ca901134f421012a3faa38cc27f83aa.tar.xz
anaconda-4916cd951ca901134f421012a3faa38cc27f83aa.zip
fix searchpath for execWithCapture
Diffstat (limited to 'iutil.py')
-rw-r--r--iutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/iutil.py b/iutil.py
index bb31f0487..6793b5089 100644
--- a/iutil.py
+++ b/iutil.py
@@ -118,7 +118,7 @@ def execWithRedirect(command, argv, stdin = 0, stdout = 1, stderr = 2,
def execWithCapture(command, argv, searchPath = 0, root = '/', stdin = 0,
catchfd = 1, closefd = -1):
- if not os.access (root + command, os.X_OK):
+ if not searchPath and not os.access (root + command, os.X_OK):
raise RuntimeError, command + " can not be run"
(read, write) = os.pipe()