def imagepath(path): """ Translates a path relative to the image directory into an absolute path. @param path: Relative path to file. @type path: str @return: Absolute path to file. @rtype: str """ from pathconfig import path_cfg return path_cfg.get_path('pixmaps', path)
def localepath(): """ Returns the path to the locale directory. """ from pathconfig import path_cfg return path_cfg.get_path('locale')