| |
---|
| | |
---|
| | DESCRIPTION |
---|
| | ----------- |
---|
| | |
---|
| | 'tsearchpath' is a Python module for searching a list of paths for a |
---|
| | ``tsearchpath`` is a Python module for searching a list of paths for a |
---|
| | particular file system 'filename'. This can be the name of a |
---|
| | directory, file, or any other entity in the file system. This makes |
---|
| | it easy to add things like include- or configuration file paths to |
---|
| | your own programs. |
---|
| |
---|
| | |
---|
| | EXAMPLES |
---|
| | --------- |
---|
| | |
---|
| | Simple 'which' type functionatily:: |
---|
| | Simple ``which`` type functionality:: |
---|
| | |
---|
| | print tsearchpath("ls", os.getenv("PATH")) |
---|
| | |
---|
| | |
---|
| |
---|
| | |
---|
| | TEST PROGRAM |
---|
| | ------------ |
---|
| | |
---|
| | The 'tsearchpath' distribution tarball contains a simple test |
---|
| | The ``tsearchpath`` distribution tarball contains a simple test |
---|
| | driver program to experiment with this module. The syntax |
---|
| | for use is:: |
---|
| | |
---|
| | testpath.py filename searchpath [Path Separator Character] |
---|
| |
---|
| | ----------------------------- |
---|
| | |
---|
| | :: |
---|
| | |
---|
| | $Id: tsearchpath.rst,v 1.102 2010/06/25 16:23:19 tundra Exp $ |
---|
| | $Id: tsearchpath.rst,v 1.103 2010/06/25 16:31:32 tundra Exp $ |
---|
| | |
---|
| | You can find the latest version of this program at: |
---|
| | |
---|
| | http://www.tundraware.com/Software/tsearchpath |
---|
| | |