Home | Trees | Indices | Help |
|
---|
|
This file contains some functions that may be useful
|
|||
|
|||
|
|
|||
_exc_re = re.compile(r'_\[(\w+)\]_')
|
Imports: str, fife, re, sys, os
|
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 Sun Feb 5 07:00:22 2023 | http://epydoc.sourceforge.net |