AcsutilPy.FindFile
index
/diska/alma_tmp/ACS/LGPL/CommonSoftware/acsutilpy/src/AcsutilPy/FindFile.py

This module provides for Python the file finding algorithm used by
ACS. It is intended to work like its namesake "acsFindFile.cpp".

 
Modules
       
os
stat

 
Functions
       
findFile(filename)
Searches for "filename" in current directory, INTROOT, or ACSROOT,
searching in that order. This is intended to function like the C++
version in "acsFindFile.cpp".
 
Parameters:
- fileName is the stringified file name you are looking for. An example
could be "idl/maci.idl"
 
Return: tuple composed of
* file path (empty string, if file is not found)
* file mode
* file size
* directory flag (non-zero iff file path is a directory; zero, otherwise)
 
Use with caution.

 
Data
        DEBUG = 0
__revision__ = '$Id: FindFile.py,v 1.4 2005/10/17 15:55:43 dfugate Exp $'