summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-09-09 16:44:19 +0000
committerMatt Wilson <msw@redhat.com>1999-09-09 16:44:19 +0000
commitc8331a77c09728078e2fe29ed974b5f75a06ccd8 (patch)
treee69e6f7f698fb04c87a388735c918e081e99923f /iutil.py
parentfd88fac3daf4d19e073f5df3c9f2caa4227610f5 (diff)
downloadanaconda-c8331a77c09728078e2fe29ed974b5f75a06ccd8.tar.gz
anaconda-c8331a77c09728078e2fe29ed974b5f75a06ccd8.tar.xz
anaconda-c8331a77c09728078e2fe29ed974b5f75a06ccd8.zip
look for exec's in instpath
Diffstat (limited to 'iutil.py')
-rw-r--r--iutil.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/iutil.py b/iutil.py
index 5b8ccc859..e95aa0b42 100644
--- a/iutil.py
+++ b/iutil.py
@@ -29,7 +29,7 @@ def execWithRedirect(command, argv, stdin = 0, stdout = 1, stderr = 2,
stdout = getfd(stdout)
stderr = getfd(stderr)
- if not os.access (command, os.X_OK):
+ if not os.access (root + command, os.X_OK):
raise RuntimeError, command + " can not be run"
childpid = os.fork()
@@ -58,7 +58,7 @@ def execWithRedirect(command, argv, stdin = 0, stdout = 1, stderr = 2,
def execWithCapture(command, argv, searchPath = 0, root = '/', stdin = 0):
- if not os.access (command, os.X_OK):
+ if not os.access (root + command, os.X_OK):
raise RuntimeError, command + " can not be run"
(read, write) = os.pipe()