win32api.SearchPath

int = SearchPath(path, fileName , fileExt )

Searches a path for the specified file.

Parameters

path : string

The path to search. If None, searches the standard paths.

fileName : string

The name of the file to search for.

fileExt=None : string

specifies an extension to be added to the filename when searching for the file. The first character of the filename extension must be a period (.). The extension is added only if the specified filename does not end with an extension. If a filename extension is not required or if the filename contains an extension, this parameter can be None.

Win32 API References

Search for SearchPath at msdn, google or google groups.

Return Value

The return value is a tuple of (string, int). string is the full path name located. int is the offset in the string of the base name of the file.