Please note:The SCons wiki is now restored from the attack in March 2013. All old passwords have been invalidated. Please reset your password if you have an account. If you note missing pages, please report them to webmaster@scons.org. Also, new account creation is currently disabled due to an ongoing spam flood (2013/08/27).
Differences between revisions 1 and 2
Revision 1 as of 2006-09-07 23:43:06
Size: 657
Editor: www
Comment:
Revision 2 as of 2008-03-12 02:47:11
Size: 657
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
See also ["File()"], ["Dir()"]. See also [[File()]], [[Dir()]].

Searches for a named file in the path specified by dirs. The file argument may be a list of file names or a single string file name. The dir argument may be a list of dir paths or a single string dir path. In addition to searching for files that exist in the filesytem, this function also searches for derived files that have not yet been built.

The function returns a File object if the file is found, or None if not found.

Although it is legal to provide a list of file names, it appears that the function will always return None in this case.

foo = env.FindFile(’foo’, [’dir1’, ’dir2’])

See also File(), Dir().

FindFile() (last edited 2008-03-12 02:47:11 by localhost)