svn path=/main/branches/2.1.2/; revision=6022
from portage_util import dump_traceback
from portage_const import BASH_BINARY, SANDBOX_BINARY
-
+from portage_exception import CommandNotFound
try:
import resource
or not os.access(binary, os.X_OK)):
binary = path_lookup and find_binary(binary) or None
if not binary:
- return -1
+ raise CommandNotFound(mycommand[0])
# If we haven't been told what file descriptors to use
# default to propogating our stdin, stdout and stderr.