[Scons-users] FindFile returns on Cygwin always None

Gary Oberbrunner garyo at oberbrunner.com
Sat Oct 6 17:25:51 EDT 2012


On Sat, Oct 6, 2012 at 4:31 AM, Philipp Kraus <philipp.kraus at flashpixx.de>wrote:


> On 2012-10-06 00:50:59 +0200, Kraus Philipp said:

>

> I'm using env.FindFile for searching some files:

>>

>> f = env.FindFile( "myfile", env["LIBPATH"])

>>

>> On Linux & OSX FindFile returns the correct values, but on Cygwin f is

>> always None.

>> I have tested Scons 2.2.0 & 2.1.0 on Cygwin.

>>

>

> On "native" Windows like VS command line, FindFile works also. It seems to

> be

> only a problem in the Cygwin shell

>

> This works for me, using any Windows shell:


% cat SConstruct
env = Environment(LIBPATH=['subdir'])
f = env.FindFile('myfile', env['LIBPATH'])
print f
% mkdir subdir
% touch subdir/myfile
% scons -Q
subdir\myfile
'.' is up to date.
%

Can you show exactly what's failing for you? I don't see why the type of
shell you start SCons in should matter.

--
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20121006/5b08f8d1/attachment.html>


More information about the Scons-users mailing list