Mercurial > babel > mirror
diff scripts/import_cldr.py @ 65:75fe8369ed3b trunk
Add Babel soruce path to CLDR import script automatically for asmodai ;-).
author | cmlenz |
---|---|
date | Fri, 08 Jun 2007 13:22:37 +0000 |
parents | 464fbcefedde |
children | 061ea0e0ac8c |
line wrap: on
line diff
--- a/scripts/import_cldr.py +++ b/scripts/import_cldr.py @@ -22,6 +22,9 @@ except ImportError: from elementtree.ElementTree import parse +# Make sure we're using Babel source, and not some previously installed version +sys.path.insert(0, os.path.join(os.path.dirname(sys.argv[0]), '..')) + from babel import dates, numbers weekdays = {'mon': 0, 'tue': 1, 'wed': 2, 'thu': 3, 'fri': 4, 'sat': 5,