diff options
-rw-r--r-- | iutil.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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() |