[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r15653 - branches/python-bindings-improvements/build/generator

From: David James <james82_at_gmail.com>
Date: 2005-08-10 17:23:22 CEST

On 8/10/05, David James <james82@gmail.com> wrote:
> We could probably simplify the above code to:
> elif key == '--with-swig':
> dirs = [ "", value, os.path.join(value, "bin") ]
> self.swig_path = self._find_executable("swig", dirs)
(Oops. Here's a working implementation. It searches for the absolute
path "value". If that is not found, it searches in "value" and
"value/bin" for the swig executable. Since _find_executable is aware
of .exe extensions, it's not necessary to have logic regarding the
.exe extension here.)

elif key == '--with-swig':
    dirs = [ value, os.path.join(value, "bin") ]
    self.swig_path = self._find_executable(value, [""]) or \
                     self._find_executable("swig", dirs)



David James -- http://www.cs.toronto.edu/~james
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Aug 10 17:24:35 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.