| Home | Trees | Indices | Help |
|---|
|
|
This file contains some functions that may be useful
|
|||
|
|||
|
|||
|
|||
_exc_re = re.compile(r'_\[
|
|||
__package__ =
|
|||
|
|||
Checks if an exception is of given type.
Example:
try:
obj = self.model.createObject(str(id), str(nspace), parent)
except RuntimeError, e:
if is_fife_exc(fife.NameClash, e):
raise NameClash('Tried to create already existing object, ignoring')
raise
|
Gets the proper location to save configuration and data files, depending on depending on OS. Windows: %APPDATA%endorppname Mac: ~/Library/Application Support/vendor/appname Linux/Unix/Other: ~/.vendor/appname See: Brian Vanderburg II @ http://mail.python.org/pipermail/python-list/2008-May/660779.html |
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Fri Feb 10 00:00:30 2012 | http://epydoc.sourceforge.net |