I think you have this backward. The first argument must be a full path,
unless you pass shell=True. And in any case, the sbin directories are not
guaranteed to be in the PATH unless you are running as root.
On Dec 21, 2013 1:04 PM, "Will Maier" <notifications@github.com> wrote:

> In tests/util.py:
>
> > @@ -46,7 +52,7 @@ def _start_unbound(conf, unbound_flags=None):
> >          nt.write(make_config(conf))
> >          nt.flush()
> >
> > -        args = shlex.split("/usr/local/sbin/unbound -dv -c %s" % nt.name)
> > +        args = shlex.split("%s -dv -c %s" % (UNBOUND_BINARY, nt.name))
>
> ...subprocess will do the right thing given simply 'unbound' here because
> we split the command string into a list.
>
> >>> subprocess.Popen("echo ok".split())<subprocess.Popen object at 0x104dddb10>>>> ok
> >>> subprocess.Popen("echo ok")Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/local/Cellar/python/2.7.3/lib/python2.7/subprocess.py", line 679, in __init__
>     errread, errwrite)
>   File "/usr/local/Cellar/python/2.7.3/lib/python2.7/subprocess.py", line 1249, in _execute_child
>     raise child_exceptionOSError: [Errno 2] No such file or directory
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/SimpleFinance/unbound-ec2/pull/4/files#r8518311>
> .
>