|
From: Ian B. <ia...@co...> - 2006-10-03 15:34:56
|
sub...@co... wrote: > +def get_localedir(): > + return "%s%s%s" % (os.path.dirname(formencode.__file__), os.path.sep, "i18n") > + > def set_stdtranslation(domain="FormEncode", languages=None, \ > - localedir = "%s%s%s" % \ > - (os.path.dirname(formencode.__file__), os.path.sep, "i18n")): > + localedir = get_localedir()): Shouldn't that be os.path.join(os.path.dirname(__file__), 'i18n') ? Also, perhaps this should be using pkg_resources: http://peak.telecommunity.com/DevCenter/PythonEggs#accessing-package-resources -- Ian Bicking | ia...@co... | http://blog.ianbicking.org |