Package gmisclib :: Module find_home
[frames] | no frames]

Module find_home

source code

This lets you find files with just a path name relative to where the program's executable code script sits.


Version: $Revision: 1.6 $

Functions
 
executable(s, general=True)
Find an executable program.
source code
 
module(s, general=True)
Find a module.
source code
 
os_prgm(nm, general=1)
Find an operating-system dependent executable program.
source code
 
data(s)
Find a data file.
source code
 
directory(s)
Find a directory.
source code
Variables
  __package__ = 'gmisclib'

Imports: sys, os


Function Details

executable(s, general=True)

source code 

Find an executable program. It searches first in the directory of the currently executing python script. Optionally, it then looks at PATH. If general=False, the function should fail unless the executable is in the same directory as the currently executing python script.

module(s, general=True)

source code 

Find a module. Returns pathname.