Package sabx10 :: Package map :: Module utils
[hide private]
[frames] | no frames]

Module utils

source code

Utility routines.

Functions [hide private]
string
determine_path()
Determine the path to the file containing this routine.
source code
Variables [hide private]
  __package__ = 'sabx10.map'
Function Details [hide private]

determine_path()

source code 

Determine the path to the file containing this routine. This is handy for getting the directory a package is located in. Obviously, this works best when all the files for a package are in the same directory and not split into sub-directories.

This is based on code found in the distutils tutorial at http://wiki.python.org/moin/Distutils/Tutorial. Apparently the tutorial author found it in wxglade.py.

Returns: string
directory part of path this file is in