[EMAIL PROTECTED] 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 | [EMAIL PROTECTED] | http://blog.ianbicking.org ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ FormEncode-CVS mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/formencode-cvs
